undefined reference to `pthread_create'
编译命令:gcc -o pro_11.1 pro_11-1.c
就会报错:错误如下:
/tmp/ccAmLjR7.o: In function main':
pro_11-1.c:(.text+0x307): undefined reference topthread_create’
collect2: ld ·µ»Ø 1
经过网上查询原因是:
pthread 库不是 Linux ...
转载
2018-03-27 23:07:29 ·
304 阅读 ·
0 评论