From: schweng@astro.unibas.ch (Hans Schwengeler)
Subject: Re: Unresolved reference: sem_wait
Date: 2000/04/13 [thread overview]
Message-ID: <38f594c5.0@maser.urz.unibas.ch> (raw)
In-Reply-To: 8d3inv$it1$1@Masala.CC.UH.EDU
In article <8d3inv$it1$1@masala.cc.uh.edu>,
"Ali Berrached" <BerrachedA@dt.uh.edu> writes:
> 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 <semaphore.h> 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
>
Dear Ali,
grep -l sem_wait /usr/lib/* shows:
/usr/lib/librt.a
Yours, Hans.
===============================================================================
Hans Schwengeler
Astronomical Institute INTERNET: schweng@astro.unibas.ch
University of Basel Hans.Schwengeler@unibas.ch
Venusstrasse 7
CH-4102 Binningen PHONE: +41 61 20 55 422
Switzerland FAX: +41 61 20 55 455
===============================================================================
prev parent reply other threads:[~2000-04-13 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-12 4:00 Unresolved reference: sem_wait Ali Berrached
2000-04-13 4:00 ` Joe Mario
2000-04-13 4:00 ` Hans Schwengeler [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox