From: "Ali Berrached" <BerrachedA@dt.uh.edu>
Subject: Unresolved reference: sem_wait
Date: 2000/04/12 [thread overview]
Message-ID: <8d3inv$it1$1@Masala.CC.UH.EDU> (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
next reply other threads:[~2000-04-12 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-12 4:00 Ali Berrached [this message]
2000-04-13 4:00 ` Unresolved reference: sem_wait Joe Mario
2000-04-13 4:00 ` Hans Schwengeler
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