undefined reference to symbol ‘pthread_create@@GLIBC_2.2.5
·
undefined reference to symbol 'pthread_create@@GLIBC_2.2.5
在使用cmake编译的时候,报错了,发现是pthread动态库没有找到
需要指定动态库才行的
SET(CMAKE_CXX_FLAGS “-pthread”)
更多推荐
undefined reference to symbol 'pthread_create@@GLIBC_2.2.5
在使用cmake编译的时候,报错了,发现是pthread动态库没有找到
需要指定动态库才行的
SET(CMAKE_CXX_FLAGS “-pthread”)
更多推荐
所有评论(0)