"undefined reference to sem_init code example
Example: 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
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