1,
解决办法:
pthread 不是 Linux 系统的默认库, 编译时加上 - lpthread 参数, 以调用链接库
gcc -o 文件名. out 文件名. c -lpthread
输出的时候直接 ./ 文件名. out
update:
如果还有 pthread_join() 这个函数, 也运用以上的方式.
来源: http://www.bubuko.com/infodetail-2885908.html