您现在的位置是:主页 > news > 主页面设计/官网优化 报价
主页面设计/官网优化 报价
admin2025/5/20 21:47:33【news】
简介主页面设计,官网优化 报价,中国电信网站备案管理系统,抚顺网络推广问题的原因:pthread不是Linux下的默认的库,也就是在链接的时候,无法找到phread库中的函数的入口地址,于是链接会失败。 解决:在gcc编译的时候,附加要加 -lpthread参数即可解决。 rootubuntu:/test/linux/20…
主页面设计,官网优化 报价,中国电信网站备案管理系统,抚顺网络推广问题的原因:pthread不是Linux下的默认的库,也就是在链接的时候,无法找到phread库中的函数的入口地址,于是链接会失败。 解决:在gcc编译的时候,附加要加 -lpthread参数即可解决。 rootubuntu:/test/linux/20…
问题的原因:pthread不是Linux下的默认的库,也就是在链接的时候,无法找到phread库中的函数的入口地址,于是链接会失败。
解决:在gcc编译的时候,附加要加 -lpthread参数即可解决。
root@ubuntu:/test/linux/20160218# gcc threadid.c
/tmp/cc2buUlJ.o: In function `main':
threadid.c:(.text+0x2e6): undefined reference to `pthread_create'
collect2: ld returned 1 exit status
root@ubuntu:/test/linux/20160218# gcc -lpthread threadid.c
root@ubuntu:/test/linux/20160218# ./a.out
main thread: pid 5720 tid 3077879488 (0xb774b6c0)
new thread: pid 5720 tid 3077876592 (0xb774ab70)
root@ubuntu:/test/linux/20160218#