codeblocks编译pthread问题

默认的编译选项是没有pthread的,所以要自己添加:

参考:http://hi.baidu.com/u_soa/item/9d6cc40b7e9d76eb3499024d

错误:

undefined reference to 'pthread_create'

解决:

Project -> Build options -> Linker settings -> Link libraries 里加上pthread

这样就解决啦!非常感谢老游网友!

posted @ 2013-09-23 21:38  hailong  阅读(2756)  评论(0编辑  收藏  举报