From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e78de1fab6a088d0,start X-Google-Attributes: gidfee84,public From: "Ali Berrached" Subject: Unresolved reference: sem_wait Date: 2000/04/12 Message-ID: <8d3inv$it1$1@Masala.CC.UH.EDU>#1/1 X-Deja-AN: 610516877 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: abuse@UH.EDU X-Trace: Masala.CC.UH.EDU 955600447 19361 129.7.173.58 (13 Apr 2000 04:34:07 GMT) Organization: University of Houston X-MSMail-Priority: Normal NNTP-Posting-Date: 13 Apr 2000 04:34:07 GMT Newsgroups: comp.unix.osf.osf1 I am trying to use semaphores for thread synchronization (using sem_init, sem_wait, sem_post, etc.) on Digital Unix 4. But the cc compiler keeps generating the error message "unresolved reference: sem_wait, sem_post, ...). I have included and compiled using the -pthread option (cc prog.c -pthread). It seems like I need to link to some library but there is no mention of it in the documentation. Anyone else ran into this problem before? any help will be greatly appreciated. Many Thanks Ali Berrached