Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Unresolved reference: sem_wait
@ 2000-04-12  4:00 Ali Berrached
  2000-04-13  4:00 ` Hans Schwengeler
  2000-04-13  4:00 ` Joe Mario
  0 siblings, 2 replies; 3+ messages in thread
From: Ali Berrached @ 2000-04-12  4:00 UTC (permalink / raw)


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






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-04-13  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-04-12  4:00 Unresolved reference: sem_wait Ali Berrached
2000-04-13  4:00 ` Hans Schwengeler
2000-04-13  4:00 ` Joe Mario

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox