undefined reference to `sem_init‘undefined reference to `sem_post‘undefined reference to `sem_wait‘
编译选项需要加入一个多线程:
gcc -pthread -o outfile.out filename.c
Linux编程日常错误
原文:https://www.cnblogs.com/hemeiwolong/p/11042905.html