摘要: 今天敲了一个小程序,编译时出现错误:undefined reference pthread_create 原来由于pthread库不是Linux系统默认的库,连接时需要使用库libpthread.a,所以在使用pthread_create创建线程时,在编译中要加-lpthread参数:gcc -o 阅读全文
posted @ 2017-11-04 01:19 李学文 阅读(2419) 评论(0) 推荐(0) 编辑
levels of contents