You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Ubuntu 16.10, use gcc 6 that comes with the system.
If you want to use gcc 4.9, you will need to compile and install boost from source due to ABI issue.
Just google 'boost::unit_test::ut_detail::normalize_test_case_name'
CMakeFiles/buffer_unittest.dir/Buffer_unittest.cc.o:在函数‘boost::unit_test::make_test_case(boost::function<void ()> const&, boost::unit_test::basic_cstring, boost::unit_test::basic_cstring, unsigned long)’中:
/usr/include/boost/test/tree/test_unit.hpp:249:对‘boost::unit_test::ut_detail::normalize_test_case_name(boost::unit_test::basic_cstring)’未定义的引用
collect2: error: ld returned 1 exit status
muduo/net/tests/CMakeFiles/buffer_unittest.dir/build.make:96: recipe for target 'bin/buffer_unittest' failed
make[2]: *** [bin/buffer_unittest] Error 1
CMakeFiles/Makefile2:1614: recipe for target 'muduo/net/tests/CMakeFiles/buffer_unittest.dir/all' failed
make[1]: *** [muduo/net/tests/CMakeFiles/buffer_unittest.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
我的gcc版本
baobao@baobao-desktop:~/source/muduo/build$ gcc -v
g++版本
boost版本。
vi /usr/include/boost/version.hpp
#define BOOST_LIB_VERSION "1_61"
The text was updated successfully, but these errors were encountered: