From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5e0632386a73a280 X-Google-Attributes: gidfee84,public From: Stefan Schwarzer Subject: Re: shm_open (Shared Memory Open) not found in OSF1 ? Date: 1998/08/25 Message-ID: <6rvcr7$r30$2@infosun2.rus.uni-stuttgart.de>#1/1 X-Deja-AN: 384705794 References: <359b57f0.25366721@news.kornet.nm.kr> Organization: ICA 1, Stuttgart University User-Agent: tin/pre-1.4-971224 (UNIX) (SunOS/5.5.1 (sun4u)) Newsgroups: comp.unix.osf.osf1 CHOI. MYUNG JONG wrote: > RE: shm_open (Shared Memory Open) not found in OSF1 ? > Upon compiling of the code, however, I am getting link error. > > $> cc -g digital.c > ld: > Unresolved: > shm_open > shm_unlink > memlk > $> I found, e.g., shm_open, in librt.a, so you can resolve the symbol by adding -lrt on the command line. In general use the 'nm' command to find symbols in libraries, e.g., in the (t)csh, in /usr/lib, /usr/ccs/lib or whereever, type > foreach f ( lib* ) ? echo $f; nm $f | fgrep ? end Sorry, I don't have a code example, I am more of a message passing fan for the applications I write. -- Stefan Schwarzer office: +49-(0)711-685-7606 fax: x-3658 Uni Stuttgart, ICA 1 e-mail: sts@ica1.uni-stuttgart.de Pfaffenwaldring 27 pgp public key available on request/finger 70569 Stuttgart, Germany http://www.ica1.uni-stuttgart.de/~sts