我正在尝试在C ++中编译一个名为Dionysus
的拓扑库。我一直遇到与Boost
库相关的编译错误,但我似乎无法弄清楚问题是什么?我重新安装了几次boost,我使用的是版本1.62.0。我也在使用gcc
版本4.9.4。
错误信息如下:
CMakeFiles/compare-diagrams.dir/compare-diagrams.o: In function `void boost::archive::binary_iarchive_impl<boost::archive::binary_iarchive, char, std::char_traits<char> >::load_override<boost::archive::class_name_type>(boost::archive::class_name_type&)':
/usr/lib/include/boost/archive/binary_iarchive_impl.hpp:58: undefined reference to `boost::archive::basic_binary_iarchive<boost::archive::binary_iarchive>::load_override(boost::archive::class_name_type&)'
CMakeFiles/compare-diagrams.dir/compare-diagrams.o: In function `void boost::serialization::throw_exception<boost::archive::archive_exception>(boost::archive::archive_exception const&)':
/usr/lib/include/boost/serialization/throw_exception.hpp:36: undefined reference to `boost::archive::archive_exception::archive_exception(boost::archive::archive_exception const&)'
collect2: error: ld returned 1 exit status
examples/alphashapes/CMakeFiles/compare-diagrams.dir/build.make:96: recipe for target 'examples/alphashapes/compare-diagrams' failed
错误似乎与/usr/lib/include/boost/archive/binary_iarchive_impl.hpp:58
有关,但文件在那里,所有其他文件似乎都已到位。
有什么建议吗?