摘要: 由于pthread库不是Linux系统默认的库,连接时需要使用库libpthread.a,所以在使用pthread_create创建线程时,在编译中要加-l pthread参数: gcc example.c -lpthread -o example 注意:是小写的l 阅读全文
posted @ 2014-07-22 16:16 bzyzhang 阅读(517) 评论(0) 推荐(0) 编辑