phk
0
Q:

undefined reference to `sem_init'

If you are on a linux system, you will need to compile and link with 
the -pthread flag to link the pthreads library.


$ gcc -pthread FileName.c
1

New to Communities?

Join the community