求助,已经加上-lpthread,还是找不到pthread_setaffinity_np

xmmx123 xmmx123 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区


gcc 1.c -o test -lm -lpthread

提示 undefined reference to `pthread_setaffinity_np'

但是像pthread_create 什么的却能正常编译通过

环境:

2.6 linux
getconf GNU_LIBPTHREAD_VERSION nptl 0.61
...全文

相关推荐

评论 10
收藏 已收藏
分享
返回顶部
xmmx123
Linux/Unix社区 23,224 成员 74,535 内容