|
Boost Users : |
Subject: [Boost-users] [Serialization] Failed to Link "A Very Simple Case"
From: Hossein Haeri (powerprogman_at_[hidden])
Date: 2010-08-06 09:22:41
Dear all,
Trying the first example of the Boost.Serialization (A Very Simple Case):
http://boost-sandbox.sourceforge.net/boost_1_43_0/libs/serialization/doc/tutorial.html#simplecase
I get the error messages in the P.S. section with GCC 4.4.0 MinGW WinXP. Any ideas?
TIA,
--Hossein
P.S.
Compiling: main.cpp
Linking console executable: bin\Debug\Serial.exe
obj\Debug\main.o: In function `text_oarchive':
/archive/text_oarchive.hpp:92: undefined reference to `boost::archive::text_oarchive_impl<boost::archive::text_oarchive>::text_oarchive_impl(std::ostream&, unsigned int)'
obj\Debug\main.o: In function `text_iarchive':
/archive/text_iarchive.hpp:129: undefined reference to `boost::archive::text_iarchive_impl<boost::archive::text_iarchive>::text_iarchive_impl(std::istream&, unsigned int)'
/archive/text_iarchive.hpp:129: undefined reference to `boost::archive::detail::shared_ptr_helper::shared_ptr_helper()'
obj\Debug\main.o: In function `~text_iarchive':
/archive/text_iarchive.hpp:131: undefined reference to `boost::archive::detail::shared_ptr_helper::~shared_ptr_helper()'
/archive/text_iarchive.hpp:131: undefined reference to `boost::archive::detail::shared_ptr_helper::~shared_ptr_helper()'
obj\Debug\main.o: In function `~text_oarchive_impl':
/archive/text_oarchive.hpp:77: undefined reference to `boost::archive::basic_text_oprimitive<std::ostream>::~basic_text_oprimitive()'
/archive/text_oarchive.hpp:77: undefined reference to `boost::archive::basic_text_oprimitive<std::ostream>::~basic_text_oprimitive()'
/archive/text_oarchive.hpp:77: undefined reference to `boost::archive::basic_text_oprimitive<std::ostream>::~basic_text_oprimitive()'
/archive/text_oarchive.hpp:77: undefined reference to `boost::archive::basic_text_oprimitive<std::ostream>::~basic_text_oprimitive()'
/archive/text_oarchive.hpp:77: undefined reference to `boost::archive::basic_text_oprimitive<std::ostream>::~basic_text_oprimitive()'
obj\Debug\main.o:
/archive/text_oarchive.hpp:77: more undefined references to `boost::archive::basic_text_oprimitive<std::ostream>::~basic_text_oprimitive()' follow
obj\Debug\main.o: In function `~text_iarchive_impl':
/archive/text_iarchive.hpp:80: undefined reference to `boost::archive::basic_text_iprimitive<std::istream>::~basic_text_iprimitive()'
/archive/text_iarchive.hpp:80: undefined reference to `boost::archive::basic_text_iprimitive<std::istream>::~basic_text_iprimitive()'
/archive/text_iarchive.hpp:80: undefined reference to `boost::archive::basic_text_iprimitive<std::istream>::~basic_text_iprimitive()'
/archive/text_iarchive.hpp:80: undefined reference to `boost::archive::basic_text_iprimitive<std::istream>::~basic_text_iprimitive()'
/archive/text_iarchive.hpp:80: undefined reference to `boost::archive::basic_text_iprimitive<std::istream>::~basic_text_iprimitive()'
obj\Debug\main.o:
/archive/text_iarchive.hpp:80: more undefined references to `boost::archive::basic_text_iprimitive<std::istream>::~basic_text_iprimitive()' follow
obj\Debug\main.o: In function `~common_oarchive':
archive/detail/common_oarchive.hpp:38: undefined reference to `boost::archive::detail::basic_oarchive::~basic_oarchive()'
/archive/detail/common_oarchive.hpp:38: undefined reference to `boost::archive::detail::basic_oarchive::~basic_oarchive()'
/archive/detail/common_oarchive.hpp:38: undefined reference to `boost::archive::detail::basic_oarchive::~basic_oarchive()'
obj\Debug\main.o: In function `~common_iarchive':
/archive/detail/common_iarchive.hpp:43: undefined reference to `boost::archive::detail::basic_iarchive::~basic_iarchive()'
/archive/detail/common_iarchive.hpp:43: undefined reference to `boost::archive::detail::basic_iarchive::~basic_iarchive()'
/archive/detail/common_iarchive.hpp:43: undefined reference to `boost::archive::detail::basic_iarchive::~basic_iarchive()'
obj\Debug\main.o:
/archive/detail/oserializer.hpp:253: undefined reference to `boost::archive::detail::basic_oarchive::save_object(void const*, boost::archive::detail::basic_oserializer const&)'
obj\Debug\main.o:
/archive/detail/iserializer.hpp:381: undefined reference to `boost::archive::detail::basic_iarchive::load_object(void*, boost::archive::detail::basic_iserializer const&)'
obj\Debug\main.o: In function `oserializer':
/archive/detail/oserializer.hpp:112: undefined reference to `boost::archive::detail::basic_oserializer::basic_oserializer(boost::serialization::extended_type_info const&)'
obj\Debug\main.o: In function `~oserializer':
/archive/detail/oserializer.hpp:133: undefined reference to `boost::archive::detail::basic_oserializer::~basic_oserializer()'
/archive/detail/oserializer.hpp:133: undefined reference to `boost::archive::detail::basic_oserializer::~basic_oserializer()'
/archive/detail/oserializer.hpp:133: undefined reference to `boost::archive::detail::basic_oserializer::~basic_oserializer()'
obj\Debug\main.o: In function `iserializer':
/archive/detail/iserializer.hpp:133: undefined reference to `boost::archive::detail::basic_iserializer::basic_iserializer(boost::serialization::extended_type_info const&)'
obj\Debug\main.o: In function `~iserializer':
/archive/detail/iserializer.hpp:158: undefined reference to `boost::archive::detail::basic_iserializer::~basic_iserializer()'
/archive/detail/iserializer.hpp:158: undefined reference to `boost::archive::detail::basic_iserializer::~basic_iserializer()'
/archive/detail/iserializer.hpp:158: undefined reference to `boost::archive::detail::basic_iserializer::~basic_iserializer()'
obj\Debug\main.o: In function `extended_type_info_typeid':
/serialization/extended_type_info_typeid.hpp:86: undefined reference to `boost::serialization::typeid_system::extended_type_info_typeid_0::extended_type_info_typeid_0(char const*)'
/serialization/extended_type_info_typeid.hpp:88: undefined reference to `boost::serialization::typeid_system::extended_type_info_typeid_0::type_register(std::type_info const&)'
/serialization/extended_type_info_typeid.hpp:89: undefined reference to `boost::serialization::extended_type_info::key_register() const'
/serialization/extended_type_info_typeid.hpp:89: undefined reference to `boost::serialization::typeid_system::extended_type_info_typeid_0::~extended_type_info_typeid_0()'
obj\Debug\main.o: In function `~extended_type_info_typeid':
/serialization/extended_type_info_typeid.hpp:92: undefined reference to `boost::serialization::extended_type_info::key_unregister() const'
/serialization/extended_type_info_typeid.hpp:93: undefined reference to `boost::serialization::typeid_system::extended_type_info_typeid_0::type_unregister()'
/serialization/extended_type_info_typeid.hpp:93: undefined reference to `boost::serialization::typeid_system::extended_type_info_typeid_0::~extended_type_info_typeid_0()'
/serialization/extended_type_info_typeid.hpp:93: undefined reference to `boost::serialization::typeid_system::extended_type_info_typeid_0::~extended_type_info_typeid_0()'
/serialization/extended_type_info_typeid.hpp:92: undefined reference to `boost::serialization::extended_type_info::key_unregister() const'
/serialization/extended_type_info_typeid.hpp:93: undefined reference to `boost::serialization::typeid_system::extended_type_info_typeid_0::type_unregister()'
/serialization/extended_type_info_typeid.hpp:93: undefined reference to `boost::serialization::typeid_system::extended_type_info_typeid_0::~extended_type_info_typeid_0()'
/serialization/extended_type_info_typeid.hpp:93: undefined reference to `boost::serialization::typeid_system::extended_type_info_typeid_0::~extended_type_info_typeid_0()'
/serialization/extended_type_info_typeid.hpp:92: undefined reference to `boost::serialization::extended_type_info::key_unregister() const'
/serialization/extended_type_info_typeid.hpp:93: undefined reference to `boost::serialization::typeid_system::extended_type_info_typeid_0::type_unregister()'
/serialization/extended_type_info_typeid.hpp:93: undefined reference to `boost::serialization::typeid_system::extended_type_info_typeid_0::~extended_type_info_typeid_0()'
/serialization/extended_type_info_typeid.hpp:93: undefined reference to `boost::serialization::typeid_system::extended_type_info_typeid_0::~extended_type_info_typeid_0()'
obj\Debug\main.o:main.cpp:(.rdata$_ZTVN5boost13serialization6detail17singleton_wrapperINS0_25extended_type_info_typeidI12gps_positionEEEE[vtable for boost::serialization::detail::singleton_wrapper<boost::serialization::extended_type_info_typeid<gps_position> >]+0x8): undefined reference to `boost::serialization::typeid_system::extended_type_info_typeid_0::is_less_than(boost::serialization::extended_type_info const&) const'
Process terminated with status 1 (0 minutes, 18 seconds)
50 errors, 0 warnings
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net