关于对‘pthread_create’未定义的引用解决方法

pollmsg.c:(.text+0x839):对‘pthread_creat’未定义的引用

缺少lpthread该库支持

使用:hello-zhen@h:~$ gcc pollmsg.c -lpthread 编译成功

发布了117 篇原创文章 · 获赞 39 · 访问量 2682

猜你喜欢

转载自blog.csdn.net/qq_38994205/article/details/105294018