这个编译错误的解决办法: 在命令行中(或编译选项中)链接pthread库,即 -lpthread 比如: gcc main.c -o test_main -lpthread 即可
主页 » Postsundefined reference to 'pthread_mutex_trylock' 解决办法2015年4月30日 · 1 分钟 · Jid这个编译错误的解决办法:在命令行中(或编译选项中)链接pthread库,即 -lpthread比如: gcc main.c -o test_main -lpthread即可