1

Undefined reference to sem_wait and pthread_join

view story
linux-howto

http://askubuntu.com – I was trying to compile my reader-writer code in Operating System, using semaphores and got this on the terminal: undefined reference to `sem_init' undefined reference to `pthread_create' undefined reference to `pthread_join' undefined reference to `sem_wait' What all packages do I need to include? (HowTos)