[serialization] -- compiling but not linking...undefined references
I successfully built the entire boost library using the bjam utility. Now I'm trying to compile and link demo.cpp but it is failing to resolve about a dozen symbols. demo.cpp is the example code for the serialization library. A typical error reads: undefined reference to 'boost::archive::ARCHIVE_SIGNUTURE' I am linking to the libboost_serialization-gcc.so library. Is there another? Can anyone steer me in the right direction? Thx.
You might try running the serialization tests - note - takes a while. There is a korn shell script in the boost/libs/serialization/test directory. typically you can invoke runtest <toolset> If this works but you can't do it without bjam - check out the bjam output to see how its differing from your own command line input. Robert Ramey P.S. I would start just by checking the usual suspects - environmental variables which hold paths to directories containing libraries etc. RR rkemp wrote:
I successfully built the entire boost library using the bjam utility. Now I'm trying to compile and link demo.cpp but it is failing to resolve about a dozen symbols. demo.cpp is the example code for the serialization library.
A typical error reads: undefined reference to 'boost::archive::ARCHIVE_SIGNUTURE'
I am linking to the libboost_serialization-gcc.so library. Is there another? Can anyone steer me in the right direction? Thx.
participants (2)
-
rkemp
-
Robert Ramey