undefined reference to 'pthread_create'解决方法

来源:互联网 发布:知乎 教育幼儿书 编辑:程序博客网 时间:2024/06/06 11:45

1.编译时添加-lpthread

2.上一步如果还是无效,说明你将-lpthread写在了-o前面,试试把-lpthread写在-o后面吧

0 0
原创粉丝点击