I have just built boost_1_51_1 with no problems
on linux redhat 5.5 64-bit machine
However, when i try to link a program that uses the
g++ client_test.o -rdynamic -L/opt/boost_1_51_0/stage/lib
-lboost_serialization -lboost_wserialization -o client_test
it gives the following error:
client_test.o: In function
`boost::serialization::detail::extended_type_info_typeid_1::extended_type_info_typeid_1()':
client_test.cpp:(.text._ZN5boost13serialization6detail27extended_type_info_typeid_1IK12gps_positionEC1Ev[boost::serialization::detail::extended_type_info_typeid_1::extended_type_info_typeid_1()]+0x12): undefined reference to
`boost::serialization::detail::extended_type_info_typeid_0::extended_type_info_typeid_0()'
client_test.cpp:(.text._ZN5boost13serialization6detail27extended_type_info_typeid_1IK12gps_positionEC1Ev[boost::serialization::detail::extended_type_info_typeid_1::extended_type_info_typeid_1()]+0x27): undefined reference to
`boost::serialization::extended_type_info::self_register()'
client_test.cpp:(.text._ZN5boost13serialization6detail27extended_type_info_typeid_1IK12gps_positionEC1Ev[boost::serialization::detail::extended_type_info_typeid_1::extended_type_info_typeid_1()]+0x3a): undefined reference to
`boost::serialization::detail::extended_type_info_typeid_0::~extended_type_info_typeid_0()'
client_test.o: In function
`boost::serialization::detail::extended_type_info_typeid_1::~extended_type_info_typeid_1()':
client_test.cpp:(.text._ZN5boost13serialization6detail27extended_type_info_typeid_1IK12gps_positionED0Ev[boost::serialization::detail::extended_type_info_typeid_1::~extended_type_info_typeid_1()]+0x1d): undefined reference to
`boost::serialization::detail::extended_type_info_typeid_0::~extended_type_info_typeid_0()'
client_test.o: In function
`boost::serialization::detail::extended_type_info_typeid_1::~extended_type_info_typeid_1()':
client_test.cpp:(.text._ZN5boost13serialization6detail27extended_type_info_typeid_1IK12gps_positionED1Ev[boost::serialization::detail::extended_type_info_typeid_1::~extended_type_info_typeid_1()]+0x1d): undefined reference to
`boost::serialization::detail::extended_type_info_typeid_0::~extended_type_info_typeid_0()'
client_test.o:(.rodata._ZTVN5boost13serialization6detail27extended_type_info_typeid_1IK12gps_positionEE[vtable
for boost::serialization::detail::extended_type_info_typeid_1]+0x10): undefined reference to
`boost::serialization::detail::extended_type_info_typeid_0::less_than(boost::serialization::extended_type_info
const&) const'
client_test.o:(.rodata._ZTIN5boost13serialization6detail27extended_type_info_typeid_1IK12gps_positionEE[typeinfo
for boost::serialization::detail::extended_type_info_typeid_1]+0x10): undefined reference to `typeinfo for
boost::serialization::detail::extended_type_info_typeid_0
What could be causing the problem ?
--
View this message in context: http://boost.2283326.n4.nabble.com/link-errors-with-boost-serialization-tp46...
Sent from the Boost - Users mailing list archive at Nabble.com.