如何解决构建pion网络库中未定义的引用提升错误?

时间:2016-09-16 06:40:25

标签: c++ boost

我在centos 7中编译pion网络库时遇到错误。我已经安装了boost 1.53。

错误:

  

make [1]:进入目录   /home/admin/pion-5.0.6/pion-5.0.6/utils' CXXLD helloserver
../src/.libs/libpion.so: undefined reference to
提升::   re_detail_106100 ::   cpp_regex_traits_implementation :: transform(char const *,char   const *)const' ../src/.libs/libpion.so:未定义的引用   boost::thread_detail::rollback_once_region(boost::once_flag&)' ../src/.libs/libpion.so: undefined reference to 的boost :: re_detail_106100 :: perl_matcher< __ gnu_cxx :: __ normal_iterator,   std :: allocator> >,boost :: regex_traits>

     
    

:: construct_init(boost :: basic_regex>> const&,     提高:: regex_constants :: _ match_flags)' ../src/.libs/libpion.so:     未定义的引用     boost::thread_detail::commit_once_region(boost::once_flag&)' ../src/.libs/libpion.so: undefined reference to boost :: re_detail_106100 :: cpp_regex_traits_implementation :: transform_primary(char const *,char const *)const' ../src/.libs/libpion.so:undefined     参考     boost::re_detail_106100::raise_runtime_error(std::runtime_error const&)' ../src/.libs/libpion.so: undefined reference to 的boost :: re_detail_106100 :: get_mem_block()' ../src/.libs/libpion.so:     未定义的引用     boost::re_detail_106100::get_default_error_string(boost::regex_constants::error_type)' ../src/.libs/libpion.so: undefined reference to 的boost :: re_detail_106100 :: put_mem_block(无效*)'     ../src/.libs/libpion.so:未定义的引用     boost::re_detail_106100::verify_options(unsigned int, boost::regex_constants::_match_flags)' ../src/.libs/libpion.so: undefined reference to 的boost :: thread_detail :: enter_once_region(升压:: once_flag&安培;)' collect2:     错误:ld返回1退出状态make [1]: * [helloserver]错误1     make [1]:离开目录`/home/admin/pion-5.0.6/pion-5.0.6/utils'     make:* [all-recursive]错误1

  

请帮我解决这个问题..

0 个答案:

没有答案