Boost logo

Boost Users :

Subject: Re: [Boost-users] [serialization] problem with custom archive type
From: Kenneth Riddile (kfriddile_at_[hidden])
Date: 2010-08-26 08:23:50


On 8/25/2010 11:42 PM, Robert Ramey wrote:
> #define BOOST_ARCHIVE_SOURCE

Thanks Robert, that got me one step closer. Now, when anything tries to
link with the static library that CustomArchive is a part of, I get a
bunch of unresolved externals like the following (rs::InputArchive ==
CustomArchive):

2>renderer.lib(Material.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) protected: __thiscall
boost::archive::xml_iarchive_impl<class
rs::InputArchive>::~xml_iarchive_impl<class rs::InputArchive>(void)"
(__imp_??1?$xml_iarchive_impl_at_VInputArchive@rs@@@archive_at_boost@@IAE_at_XZ)
referenced in function "public: __thiscall
rs::InputArchive::~InputArchive(void)" (??1InputArchive_at_rs@@QAE_at_XZ)
2>renderer.lib(Mesh.obj) : error LNK2001: unresolved external symbol
"__declspec(dllimport) protected: __thiscall
boost::archive::xml_iarchive_impl<class
rs::InputArchive>::~xml_iarchive_impl<class rs::InputArchive>(void)"
(__imp_??1?$xml_iarchive_impl_at_VInputArchive@rs@@@archive_at_boost@@IAE_at_XZ)
2>renderer.lib(Model.obj) : error LNK2001: unresolved external symbol
"__declspec(dllimport) protected: __thiscall
boost::archive::xml_iarchive_impl<class
rs::InputArchive>::~xml_iarchive_impl<class rs::InputArchive>(void)"
(__imp_??1?$xml_iarchive_impl_at_VInputArchive@rs@@@archive_at_boost@@IAE_at_XZ)
2>renderer.lib(Material.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) protected: __thiscall
boost::archive::xml_iarchive_impl<class
rs::InputArchive>::xml_iarchive_impl<class rs::InputArchive>(class
std::basic_istream<char,struct std::char_traits<char> > &,unsigned int)"
(__imp_??0?$xml_iarchive_impl_at_VInputArchive@rs@@@archive_at_boost@@IAE_at_AAV?$basic_istream_at_DU?$char_traits_at_D@std@@@std@@I_at_Z)
referenced in function "public: __thiscall
rs::InputArchive::InputArchive<class rs::RenderContext *>(class
std::basic_istream<char,struct std::char_traits<char> > &,class
rs::RenderContext *)"
(??$?0PAVRenderContext_at_rs@@@InputArchive_at_rs@@QAE_at_AAV?$basic_istream_at_DU?$char_traits_at_D@std@@@std@@PAVRenderContext_at_1@@Z)
2>renderer.lib(Mesh.obj) : error LNK2001: unresolved external symbol
"__declspec(dllimport) protected: __thiscall
boost::archive::xml_iarchive_impl<class
rs::InputArchive>::xml_iarchive_impl<class rs::InputArchive>(class
std::basic_istream<char,struct std::char_traits<char> > &,unsigned int)"
(__imp_??0?$xml_iarchive_impl_at_VInputArchive@rs@@@archive_at_boost@@IAE_at_AAV?$basic_istream_at_DU?$char_traits_at_D@std@@@std@@I_at_Z)
2>renderer.lib(Model.obj) : error LNK2001: unresolved external symbol
"__declspec(dllimport) protected: __thiscall
boost::archive::xml_iarchive_impl<class
rs::InputArchive>::xml_iarchive_impl<class rs::InputArchive>(class
std::basic_istream<char,struct std::char_traits<char> > &,unsigned int)"
(__imp_??0?$xml_iarchive_impl_at_VInputArchive@rs@@@archive_at_boost@@IAE_at_AAV?$basic_istream_at_DU?$char_traits_at_D@std@@@std@@I_at_Z)
2>renderer.lib(Material.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) protected: void __thiscall
boost::archive::xml_iarchive_impl<class
rs::InputArchive>::load_override(struct boost::archive::class_name_type
&,int)"
(__imp_?load_override@?$xml_iarchive_impl_at_VInputArchive@rs@@@archive_at_boost@@IAEXAAUclass_name_type_at_23@H_at_Z)
referenced in function "public: class rs::InputArchive & __thiscall
boost::archive::detail::interface_iarchive<class
rs::InputArchive>::operator>><struct
boost::archive::class_name_type>(struct boost::archive::class_name_type
&)"
(??$?5Uclass_name_type_at_archive@boost@@@?$interface_iarchive_at_VInputArchive@rs@@@detail_at_archive@boost@@QAEAAVInputArchive_at_rs@@AAUclass_name_type_at_23@@Z)
2>renderer.lib(Mesh.obj) : error LNK2001: unresolved external symbol
"__declspec(dllimport) protected: void __thiscall
boost::archive::xml_iarchive_impl<class
rs::InputArchive>::load_override(struct boost::archive::class_name_type
&,int)"
(__imp_?load_override@?$xml_iarchive_impl_at_VInputArchive@rs@@@archive_at_boost@@IAEXAAUclass_name_type_at_23@H_at_Z)
2>renderer.lib(Model.obj) : error LNK2001: unresolved external symbol
"__declspec(dllimport) protected: void __thiscall
boost::archive::xml_iarchive_impl<class
rs::InputArchive>::load_override(struct boost::archive::class_name_type
&,int)"
(__imp_?load_override@?$xml_iarchive_impl_at_VInputArchive@rs@@@archive_at_boost@@IAEXAAUclass_name_type_at_23@H_at_Z)
2>renderer.lib(Material.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) protected: void __thiscall
boost::archive::basic_xml_iarchive<class
rs::InputArchive>::load_override(class boost::archive::version_type
&,int)"
(__imp_?load_override@?$basic_xml_iarchive_at_VInputArchive@rs@@@archive_at_boost@@IAEXAAVversion_type_at_23@H_at_Z)
referenced in function "protected: void __thiscall
boost::archive::xml_iarchive_impl<class
rs::InputArchive>::load_override<class
boost::archive::version_type>(class boost::archive::version_type &,int)"
(??$load_override_at_Vversion_type_at_archive@boost@@@?$xml_iarchive_impl_at_VInputArchive@rs@@@archive_at_boost@@IAEXAAVversion_type_at_12@H_at_Z)
2>renderer.lib(Mesh.obj) : error LNK2001: unresolved external symbol
"__declspec(dllimport) protected: void __thiscall
boost::archive::basic_xml_iarchive<class
rs::InputArchive>::load_override(class boost::archive::version_type
&,int)"
(__imp_?load_override@?$basic_xml_iarchive_at_VInputArchive@rs@@@archive_at_boost@@IAEXAAVversion_type_at_23@H_at_Z)
2>renderer.lib(Model.obj) : error LNK2001: unresolved external symbol
"__declspec(dllimport) protected: void __thiscall
boost::archive::basic_xml_iarchive<class
rs::InputArchive>::load_override(class boost::archive::version_type
&,int)"
(__imp_?load_override@?$basic_xml_iarchive_at_VInputArchive@rs@@@archive_at_boost@@IAEXAAVversion_type_at_23@H_at_Z)


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