Boost logo

Boost Users :

From: Miguel Silvestre (msilvestre_at_[hidden])
Date: 2007-01-10 13:29:58


Hi there!!!

Now I'm trying to include the boost serialization library on my project
through class derivation.
I've followed the demo_fast_archive.cpp and the binary serialization is
compiling and working fine.

Now I'me trying to make the same for the text serialization and then for the
xml serialization.
But when compiling I'm getting these link errors:

Linking...
   Creating library ..\..\Bin\silvestre.lib and object
..\..\Bin\silvestre.exp
main2.obj : error LNK2019: unresolved external symbol "public: __thiscall
boost::archive::text_oarchive_impl<class
FlowEngine::TextArchiveO>::text_oarchive_impl<class
FlowEngine::TextArchiveO>(class std::basic_ostream<char,struct
std::char_traits<char> > &,unsigned int)" (
??0?$text_oarchive_impl_at_VTextArchiveO@FlowEngine@@@archive_at_boost@@QAE_at_AAV?$basic_ostream_at_DU?$char_traits_at_D@std@@@std@@I_at_Z)
referenced in function "public: __thiscall
FlowEngine::TextArchiveO::TextArchiveO(class std::basic_ostream<char,struct
std::char_traits<char> > &,unsigned int)" (
??0TextArchiveO_at_FlowEngine@@QAE_at_AAV?$basic_ostream_at_DU?$char_traits_at_D@std@@@std@@I_at_Z
)
main2.obj : error LNK2019: unresolved external symbol "public: __thiscall
boost::archive::text_iarchive_impl<class
FlowEngine::TextArchiveI>::text_iarchive_impl<class
FlowEngine::TextArchiveI>(class std::basic_istream<char,struct
std::char_traits<char> > &,unsigned int)" (
??0?$text_iarchive_impl_at_VTextArchiveI@FlowEngine@@@archive_at_boost@@QAE_at_AAV?$basic_istream_at_DU?$char_traits_at_D@std@@@std@@I_at_Z)
referenced in function "public: __thiscall
FlowEngine::TextArchiveI::TextArchiveI(class std::basic_istream<char,struct
std::char_traits<char> > &,unsigned int)" (
??0TextArchiveI_at_FlowEngine@@QAE_at_AAV?$basic_istream_at_DU?$char_traits_at_D@std@@@std@@I_at_Z
)
main2.obj : error LNK2019: unresolved external symbol "public: void
__thiscall boost::archive::text_iarchive_impl<class
FlowEngine::TextArchiveI>::load_override(struct
boost::archive::class_name_type &,int)" (
?load_override@?$text_iarchive_impl_at_VTextArchiveI@FlowEngine@@@archive_at_boost@@QAEXAAUclass_name_type_at_23@H_at_Z)
referenced in function "protected: void __thiscall
FlowEngine::TextArchiveI::load_override<struct
boost::archive::class_name_type>(struct boost::archive::class_name_type
&,int)" (
??$load_override_at_Uclass_name_type_at_archive@boost@@@TextArchiveI_at_FlowEngine@@IAEXAAUclass_name_type_at_archive@boost@@H_at_Z
)
main2.obj : error LNK2019: unresolved external symbol "public: void
__thiscall boost::archive::text_oarchive_impl<class
FlowEngine::TextArchiveO>::save(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)" (
?save@?$text_oarchive_impl_at_VTextArchiveO@FlowEngine@@@archive_at_boost@@QAEXABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@Z)
referenced in function "public: static void __cdecl
boost::archive::save_access::save_primitive<class
FlowEngine::TextArchiveO,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > >(class
FlowEngine::TextArchiveO &,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)" (
??$save_primitive_at_VTextArchiveO@FlowEngine@@V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@save_access_at_archive@boost@@SAXAAVTextArchiveO_at_FlowEngine@@ABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@Z
)
..\..\Bin\silvestre.exe : fatal error LNK1120: 4 unresolved externals

Error executing link.exe (tool returned code: 1120)

silvestre - 5 error(s), 0 warning(s)

For a better understand of the problem I'm going to attach the source files

Note that I've not tested/look XMLSerialization.h, so it must have errors to
I guess..

-- 
Miguel Silvestre










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