Error linking Boost with CMake

▼魔方 西西 提交于 2019-11-29 16:21:17

You have to set #define BOOST_LOG_DYN_LINK 1, this can be done with cmake using add_definitions(-DBOOST_LOG_DYN_LINK=1).

Reading the output makes my suspicion clearer, it doesn't link with any Boost libraries, because you haven't added any Boost libraries to your find_package command.

You need to explicitly list the libraries you want to find and use in the find_package command.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!