Thanks for the response, Robert! Documentation didn't change a bit about it since boost 1.37, against which I was able to compile my code. Quote from the doc (http://www.boost.org/doc/libs/1_39_0/libs/serialization/doc/special.html#exp...): "Note that the implemenation of this functionality requires that the |BOOST_CLASS_EXPORT| macro appear *after* and the inclusion of any archive class headers for which code is to be instantiated. ... ||So, *the best way to use |BOOST_CLASS_EXPORT| is to include it in the same module which implements the class*." This is exactly as I did. This is what I have for standalone exe-application: In stdafx.h: #include <boost/archive/binary_iarchive.hpp> #include <boost/archive/binary_oarchive.hpp> #include <boost/serialization/base_object.hpp> #include <boost/serialization/vector.hpp> #include <boost/serialization/export.hpp> In SomeClass.cpp: #include "stdafx.h" #include "SomeClass.h" BOOST_CLASS_EXPORT(CSomeClass) Did I miss something? Robert Ramey wrote:
Check the documentation regarding BOOST_CLASS_EXPORT and the best place to put it.