首页 新闻 搜索 专区 学院

Thrift编译失败

0
悬赏园豆:50 [待解决问题]

报错信息:processor/ProcessorTest.o: In function void testExpectedError<TSimpleServerTraits, UntemplatedTraits>()': /opt/thrift/lib/cpp/test/processor/ProcessorTest.cpp:767: undefined reference to boost::test_tools::tt_detail::report_assertion(boost::test_tools::assertion_result const&, boost::unit_test::lazy_ostream const&, boost::unit_test::basic_cstring<char const>, unsigned long, boost::test_tools::tt_detail::tool_level, boost::test_tools::tt_detail::check_type, unsigned long, ...)'
processor/ProcessorTest.o: In function lazy_ostream_impl': /opt/boost/boost/test/utils/lazy_ostream.hpp:76: undefined reference to boost::unit_test::lazy_ostream::inst'
/opt/boost/boost/test/utils/lazy_ostream.hpp:76: undefined reference to boost::unit_test::lazy_ostream::inst' /opt/boost/boost/test/utils/lazy_ostream.hpp:76: undefined reference to boost::unit_test::lazy_ostream::inst'
/opt/boost/boost/test/utils/lazy_ostream.hpp:76: undefined reference to boost::unit_test::lazy_ostream::inst' processor/ProcessorTest.o: In function void testUnexpectedError<TSimpleServerTraits, UntemplatedTraits>()':
/opt/thrift/lib/cpp/test/processor/ProcessorTest.cpp:823: undefined reference to boost::test_tools::tt_detail::report_assertion(boost::test_tools::assertion_result const&, boost::unit_test::lazy_ostream const&, boost::unit_test::basic_cstring<char const>, unsigned long, boost::test_tools::tt_detail::tool_level, boost::test_tools::tt_detail::check_type, unsigned long, ...)' processor/ProcessorTest.o: In function lazy_ostream_impl':
/opt/boost/boost/test/utils/lazy_ostream.hpp:76: undefined reference to boost::unit_test::lazy_ostream::inst' /opt/boost/boost/test/utils/lazy_ostream.hpp:76: undefined reference to boost::unit_test::lazy_ostream::inst'
/opt/boost/boost/test/utils/lazy_ostream.hpp:76: undefined reference to boost::unit_test::lazy_ostream::inst' /opt/boost/boost/test/utils/lazy_ostream.hpp:76: undefined reference to boost::unit_test::lazy_ostream::inst'
/opt/boost/boost/test/utils/lazy_ostream.hpp:76: undefined reference to boost::unit_test::lazy_ostream::inst' processor/ProcessorTest.o:/opt/boost/boost/test/utils/lazy_ostream.hpp:76: more undefined references to boost::unit_test::lazy_ostream::inst' follow

有怀疑可能是boost版本冲突导致,但不知道如何解决
求各位指点

揽茝兮的主页 揽茝兮 | 初学一级 | 园豆:96
提问于:2022-11-23 18:00
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册