
Sorry, my bad. Hit "Send" before being finished...
So let's start again... I apologize.
Hi,
I have a program that uses serialization-functionality for some of the self-
defined classes.
I specify "-lboost_serialization" with the g++ and it works fine on my local
machine.
However, when I want to compile it on a remote machine, it fails. The remote
machine is lacking >=boost-1.42 which is needed. Therefore I built (no
install) boost-1.45 remotely (under /local/cedric/boost_1_45_0) and at least
the configure-script (generated using autotools) seems to detect all the
necessary libraries and headers (provided I specify them in the environment
variables), on my local machine aswell as on the remote machine.
Now the problem is, that I don't find the reason why it fails to compile my
program remotely...
Any ideas?
Here's the command used for linking:
/bin/bash ../libtool --tag=CXX --mode=link g++ -Wno-deprecated -g -O2 -
lboost_serialization -L/local/cedric/boost_1_45_0/stage/lib -o test test-
main.o ../includes/Parser/libparser.a -lgsl -lgslcblas -lm
and an excerpt of the error (taken from the end):
...
MicroCosmParser.cpp:
(.text._ZN5boost13serialization6detail17singleton_wrapperINS0_25extended_type_info_typeidI15MicroCosmParserEEED0Ev[boost::serialization::detail::singleton_wrapper ::~singleton_wrapper()]+0x17): undefined reference to
`boost::serialization::detail::extended_type_info_typeid_0::type_unregister()'
MicroCosmParser.cpp:
(.text._ZN5boost13serialization6detail17singleton_wrapperINS0_25extended_type_info_typeidI15MicroCosmParserEEED0Ev[boost::serialization::detail::singleton_wrapper collect2: ld returned 1 exit status Best,
Cedric