undefined reference to 'pthread_cond_signal'
undefined reference to 'pthread_cond_signal'
我的编译命令是 cc -pthread example.c
-lphtread也用过了,报的错是一样的
在网上也无论如何找不到答案
求助了,谢谢! 到底怎样才能正确使用pthread_cond_signal呢? 我明明在/usr/include/pthread.h中看到有pthread_cond_signal函数的声明啊