Boost logo

Boost Users :

Subject: [Boost-users] link errors with boost serialization
From: xavier (xavier.percival_at_[hidden])
Date: 2012-10-05 00:50:43


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<gps_position
const>::extended_type_info_typeid_1()':
client_test.cpp:(.text._ZN5boost13serialization6detail27extended_type_info_typeid_1IK12gps_positionEC1Ev[boost::serialization::detail::extended_type_info_typeid_1<gps_position
const>::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<gps_position
const>::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<gps_position
const>::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<gps_position
const>::~extended_type_info_typeid_1()':
client_test.cpp:(.text._ZN5boost13serialization6detail27extended_type_info_typeid_1IK12gps_positionED0Ev[boost::serialization::detail::extended_type_info_typeid_1<gps_position
const>::~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<gps_position
const>::~extended_type_info_typeid_1()':
client_test.cpp:(.text._ZN5boost13serialization6detail27extended_type_info_typeid_1IK12gps_positionED1Ev[boost::serialization::detail::extended_type_info_typeid_1<gps_position
const>::~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<gps_position
const>]+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<gps_position
const>]+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-tp4636579.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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