Boost logo

Boost Users :

Subject: Re: [Boost-users] [serialization] binary archiver with genericprimitive types
From: Robert Ramey (ramey_at_[hidden])
Date: 2009-08-31 12:27:09


Florent Teichteil wrote:
> This compiles fine except that I get some linker errors concerning the
> basic_binary_oarchive and the basic_binary_oprimitive classes. For
> instance:
> undefined reference to
> `boost::archive::basic_binary_oprimitive<boost::archive::tbinary_oarchive<unsigned
> char>, unsigned char, std::char_traits<unsigned char>
>>> :~basic_binary_oprimitive()'
>
> It seems that parts of the serialization library's code is outside the
> definition classes, preventing to extend it with different binary
> types... Is there a workaround?

certain code should be explicitly instantitiated. Look at
binary_?archive.cpp in libs/serialization/src directory
to see how this is done.

Robert Ramey


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