【发布时间】:2018-09-25 17:57:05
【问题描述】:
我整天都在尝试解决这个错误,但没有结果。 使用 codeblocks+ mingw + cmake 编译 image
||=== Build: all in otclient (compiler: GNU GCC Compiler) ===|
undefined reference to `vtable for boost::detail::thread_data_base'|
undefined reference to `boost::thread::start_thread_noexcept()'|
undefined reference to `boost::thread::join_noexcept()'|
undefined reference to `boost::detail::thread_data_base::~thread_data_base()'|
undefined reference to `boost::detail::thread_data_base::~thread_data_base()'|
||error: ld returned 1 exit status|
CMakeFiles\otclient.dir\build.make|2272|recipe for target 'otclient.exe' failed|
CMakeFiles\Makefile2|71|recipe for target 'CMakeFiles/otclient.dir/all' failed|
C:\Users\Tomek\Desktop\compile\Makefile|128|recipe for target 'all' failed|
||=== Build failed: 9 error(s), 0 warning(s) (8 minute(s), 25 second(s)) ===|
【问题讨论】:
-
你是否也包含了库(不仅仅是标题)?
-
我不确定在哪里检查它,我是这些编译器的新手
-
我的 cmakelists 中有 target_link_libraries(${PROJECT_NAME} ${framework_LIBRARIES})
-
仍然无法正常工作:(
标签: codeblocks