在CLion中开发讯飞的linux语音库时编译出现以下问题:
undefined reference to 'pthread_create'
CLion的cmake配置:修改CMakeLists.txt
TARGET_LINK_LIBRARIES(your_executable pthread)
该行代码等价于GCC编译命令中的-pthread
转载于:https://www.cnblogs.com/BANLOONG/p/11549405.html
在CLion中开发讯飞的linux语音库时编译出现以下问题:undefined reference to 'pthread_create'
CLion的cmake配置:修改CMakeLists.txt
TARGET_LINK_LIBRARIES(your_executable pthread)
该行代码等价于GCC编译命令中的-pthread
转载于:https://www.cnblogs.com/BANLOONG/p/11549405.html