From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,437fe7480130b5bf X-Google-Attributes: gidfee84,public From: Jeff Denham Subject: Re: shm_open in OSF/1 ? Date: 1998/07/02 Message-ID: <359B8714.9FC0E0FF@brighttiger.com>#1/1 X-Deja-AN: 368070753 Content-Transfer-Encoding: 8bit References: <6nfmm3$dmb$1@news.nuri.net> Content-Type: text/plain; charset=iso-8859-1 Organization: Bright Tiger Technologies MIME-Version: 1.0 NNTP-Posting-Date: Thu, 02 Jul 1998 09:11:38 EDT Newsgroups: comp.unix.osf.osf1 onions@interpia.net wrote: > RE: shm_open in OSF/1 ? > > I need to know how to handle shared memory. > According to "Guide to Realtime programming" of OSF/1 manual, > there are functions of shm_open, shm_unlink, etc. > I found those are good for example and I tried to compile > one of the sample code from the book. > Upon compiling of the code, however, I am getting link error. > > $> cc -g digital.c > ld: > Unresolved: > shm_open > shm_unlink > memlk > $> > > Do I missing any other Compiling options ? > > Any info on this will be appreciated. > Any code sample will be much appreciated. > > onions(onions@doosan.com) Those functions live in the realtime library. So, add compile like this: $ cc -g digital.c -lrt __________________________________________________ Jeff Denham (jdenham@brighttiger.com) Bright Tiger Technologies SmartCluster� Software for Distributed Web Servers http://www.brighttiger.com 125 Nagog Park Acton, MA 01720 Phone: (978) 263-5455 x177 Fax: (978) 263-5547