C语言使用多线程相关操作错误 ## 解决 在CMakeLists.txt添加引用 find_package(Threads) # xxx代码项目名 target_link_libraries(xxx ${CMAKE_THREAD_LIBS_INIT})