
Good point. Note that the archives included include a "shared_ptr_helper" just to support shared_ptr. Robert Ramey Matthias Troyer wrote:
On Sep 15, 2008, at 11:18 AM, Allan Johns wrote:
Hi,
I've written my own archive, which works fine until I try serialising a boost::shared_ptr<X>, in which case I get:
undefined reference to ` boost
archive detail archive_pointer_oserializer boost::archive::boost_oarchive::~archive_pointer_oserializer(). (boost::archive::boost_oarchive is my archive class, in case this causes confusion).
I'm on gcc4.1.2, ceontos4 x86_64. I'm linking to libboost_serialization-gcc41-mt-1_35.so also. I've hit a bit of a brick wall here so any help would be greatly appreciated. I've searched around but can't seem to find any relevant posts on this subject.
cheers A
Do you use your own archive class? If so, please look at the serialization source files to see how to compile the sorces for your archive and which additional headers your archive source files need to include.
Matthias