linux下编译出错
c4droid吧
全部回复
仅看楼主
level 9
有点愤青0 楼主
报错信息:
/tmp/ccuf80Ty.o:在函数‘main’中:
tcpthread.c:(.text+0x114):对‘start_server’未定义的引用
tcpthread.c:(.text+0x12a):对‘start_client’未定义的引用
collect2: error: ld returned 1 exit status
编译命令 gcc tcpthread.c -o tcpthread -lpthread
求解
2017年06月08日 03点06分 1
level 11
-lpthread 放前面试试 [滑稽]
2017年06月08日 10点06分 2
没用
2017年06月09日 01点06分
1