Answers for "undefined reference to `sem_init'"

1

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
Posted by: Guest on October-19-2020

Code answers related to "undefined reference to `sem_init'"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language