摘要: 根据APUE写线程代码阿,出现如下错误:1 test_pthread_create.c:(.text+0x2e6): undefined reference to `pthread_create'原因是没有链接libthread.a库文件,所以编译方法是:1 $ gcc -lpthread test_pthread_create.c 阅读全文
posted @ 2012-03-04 14:45 leealways87 阅读(115) 评论(0) 推荐(0) 编辑