有些函数找不到 如pthread 如何编译

因为编译器的库默认没有加进来

所以在gcc 的最后面加上 -lpthread  把pthread库加入 即可编译通过

posted @ 2013-07-16 17:16  penghanying  阅读(296)  评论(0)    收藏  举报