我已经安装了 boost,我正在尝试在我的 C++ 程序中使用 boost oarchive
我在顶部包含了 binary_oarchive
#include <boost/archive/binary_oarchive.hpp>
但我猜有许多未定义的参考错误,例如这些。
/tmp/ccqt0MAu.o: In function `boost::archive::detail::common_oarchive<boost::archive::binary_oarchive>::~common_oarchive()':
/usr/include/boost/archive/detail/common_oarchive.hpp:35: undefined reference to `boost::archive::detail::basic_oarchive::~basic_oarchive()'
/tmp/ccqt0MAu.o: In function `boost::archive::binary_oarchive_impl<boost::archive::binary_oarchive, char, std::char_traits<char> >::~binary_oarchive_impl()':
/usr/include/boost/archive/binary_oarchive_impl.hpp:34: undefined reference to `boost::archive::basic_binary_oprimitive<boost::archive::binary_oarchive, char, std::char_traits<char> >::~basic_binary_oprimitive()'
我想知道我们可能会错过什么。