- 博客(2)
- 收藏
- 关注
转载 Ubuntu vscode IDE 解决<pthread.h>未定义问题
原文链接:https://blog.youkuaiyun.com/afgqwjgfjqwgfg/article/details/115737489百度之后,发现是 在ubuntu平台下调用pthread_create()函数,用gcc编译时出现Undefined reference to 'pthread_create’的问题。是因为pthread 库不是 Linux 系统默认的库,连接时需要使用静态库 libpthread.a,所以在使用pthread_create()创建线程,以及调用 pthread_atfor
2021-10-22 11:38:59
1197
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人