目录
0. 前述
1.Ubuntu下多线程使用
出现的问题:undefined reference to symbol 'pthread_create
使用多线程,需要在CMakeList中加入libpthread.a
step1:使用locate定位电脑中多线程库libpthread.a位置,确认存在
step2:cmakelist中添加pthread
微信扫一扫
出现的问题:undefined reference to symbol 'pthread_create
使用多线程,需要在CMakeList中加入libpthread.a
step1:使用locate定位电脑中多线程库libpthread.a位置,确认存在
step2:cmakelist中添加pthread
相关推荐