- 博客(3)
- 收藏
- 关注
原创 Clion 使用thread、async报错undefined reference to ‘pthread_create‘
问题描述Linux平台开发Clion项目中使用<thread>头文件中thread、async函数#include <thread>#include <future>int main(){ ... async(launch::async,[RST](){RST->update();}); ...}编译报错undefined reference to 'pthread_create'原因是没有找到多线程的库p..
2022-05-29 22:01:51
566
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人