1. 在CLion中开发讯飞的linux语音库时编译出现以下问题:

    undefined reference to 'pthread_create'
    
  2. CLion的cmake配置:修改CMakeLists.txt

    TARGET_LINK_LIBRARIES(your_executable pthread)
    

    该行代码等价于GCC编译命令中的-pthread

  3. 参考:https://www.cnblogs.com/jiu0821/p/5855827.html

posted on 2019-09-19 14:37  kingofloong  阅读(2174)  评论(0编辑  收藏  举报