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@VInputArchive@rs@@@archive@boost@@IAE@XZ)
referenced in function "public: __thiscall
rs::InputArchive::~InputArchive(void)" (??1InputArchive@rs@@QAE@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@VInputArchive@rs@@@archive@boost@@IAE@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@VInputArchive@rs@@@archive@boost@@IAE@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 &,unsigned int)"
(__imp_??0?$xml_iarchive_impl@VInputArchive@rs@@@archive@boost@@IAE@AAV?$basic_istream@DU?$char_traits@D@std@@@std@@I@Z)
referenced in function "public: __thiscall
rs::InputArchive::InputArchive(class
std::basic_istream &,class
rs::RenderContext *)"
(??$?0PAVRenderContext@rs@@@InputArchive@rs@@QAE@AAV?$basic_istream@DU?$char_traits@D@std@@@std@@PAVRenderContext@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 &,unsigned int)"
(__imp_??0?$xml_iarchive_impl@VInputArchive@rs@@@archive@boost@@IAE@AAV?$basic_istream@DU?$char_traits@D@std@@@std@@I@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 &,unsigned int)"
(__imp_??0?$xml_iarchive_impl@VInputArchive@rs@@@archive@boost@@IAE@AAV?$basic_istream@DU?$char_traits@D@std@@@std@@I@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@VInputArchive@rs@@@archive@boost@@IAEXAAUclass_name_type@23@H@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@archive@boost@@@?$interface_iarchive@VInputArchive@rs@@@detail@archive@boost@@QAEAAVInputArchive@rs@@AAUclass_name_type@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@VInputArchive@rs@@@archive@boost@@IAEXAAUclass_name_type@23@H@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@VInputArchive@rs@@@archive@boost@@IAEXAAUclass_name_type@23@H@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@VInputArchive@rs@@@archive@boost@@IAEXAAVversion_type@23@H@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@Vversion_type@archive@boost@@@?$xml_iarchive_impl@VInputArchive@rs@@@archive@boost@@IAEXAAVversion_type@12@H@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@VInputArchive@rs@@@archive@boost@@IAEXAAVversion_type@23@H@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@VInputArchive@rs@@@archive@boost@@IAEXAAVversion_type@23@H@Z)