如何修复“错误:无法找到与Boost unit_test_framework链接的标志”

时间:2013-07-02 12:15:51

标签: ubuntu boost

我正在使用Ubuntu 13.04。当我尝试从源代码构建项目时,我得到了以下消息。我是新手,可以帮助我。

./configure
:
:
checking boost/format.hpp presence... yes
checking for boost/format.hpp... yes
checking for the toolset name used by Boost for g++... configure: WARNING: could not figure out which toolset name to use for g++

checking boost/test/unit_test.hpp usability... yes
checking boost/test/unit_test.hpp presence... yes
checking for boost/test/unit_test.hpp... yes
checking for the Boost unit_test_framework library... no
configure: error: cannot find the flags to link with Boost unit_test_framework

2 个答案:

答案 0 :(得分:3)

陷入类似的错误。安装包libboost-test-dev为我修复了错误

答案 1 :(得分:1)

或者您可以改为安装libboost-all-dev