::archive_pointer_oserializer >
(class boost::serialization::extended_type_info const &)"
(??0?$archive_pointer_oserializer@V?$polymorphic_oarchive_route@V?$binary_oarchive_impl@Vbinary_oarchive@archive@boost@@DU?$char_traits@D@std@@@archive@boost@@@detail@archive@boost@@@detail@archive@boost@@$$FIAE@ABVextended_type_info@serialization@3@@Z)
Hello,
in my application I wrote the serialization like in the pimpl example.
With boost 1.34.1 this has worked. But now I have a few strange linker
errors.
e.g
Error 1413 error LNK2001: unresolved external symbol "protected:
__thiscall boost::archive::detail::archive_pointer_oserializer >
main.obj
and
Error 1414 error LNK2001: unresolved external symbol "protected:
__thiscall boost::archive::detail::archive_pointer_iserializer<class
boost::archive::polymorphic_binary_iarchive>::~archive_pointer_iserializer<class
boost::archive::polymorphic_binary_iarchive>(void)"
(??1?$archive_pointer_iserializer@Vpolymorphic_binary_iarchive@archive@boost@@@detail@archive@boost@@$$FIAE@XZ)
main.obj
The problem has something to do with BOOST_CLASS_EXPORT(A) function. If
I don't include it there is not the problem with the linker error.
In the cpp file I have at the moment the instantion
template void A::serialize(boost::archive::polymorphic_iarchive &
ar,const unsigned int file_version);
template void A::serialize(boost::archive::polymorphic_oarchive &
ar,const unsigned int file_version);
and
template void A::serialize(boost::archive::binary_iarchive & ar,const
unsigned int file_version);
template void A::serialize(boost::archive::binary_oarchive & ar,const
unsigned int file_version);
What I have to do to solve that?
Best regards
Hansjörg