[serialization] problems with using wide-char archives

Hello All: The serialization library is one of the best libraries I have used. I used to to serialize a number of files with various sizes, and it works like a charm. However, when I am using the wide-char archives, I get a linking error. Here are the problem specifications: When including : #include "boost/archive/binary_woarchive.hpp" #include "boost/archive/binary_wiarchive.hpp" Or #include "boost/archive/text_woarchive.hpp" #include "boost/archive/text_wiarchive.hpp" And attempt to use them (i.e.) std::map<wstring,size_t> htable; wstring root = L"c:"; findDFF(&htable,&root); std::wofstream ofs("someFile",std::wios::binary); boost::archive::binary_woarchive o(ofs); I get the following linking errors: [ DB3 error LNK2019: unresolved external symbol "public: __thiscall boost::archive::basic_binary_oprimitive<class boost::archive::binary_woarchive,class std::basic_ostream<unsigned short,struct std::char_traits<unsigned short> >
::~basic_binary_oprimitive<class boost::archive::binary_woarchive,class std::basic_ostream<unsigned short,struct std::char_traits<unsigned short> > (void)" (??1?$basic_binary_oprimitive@Vbinary_woarchive@archive@boost@@V?$basic_ostream@GU?$char_traits@G@std@@@std@@@archive@boost@@QAE@XZ) referenced in function "public: __thiscall boost::archive::binary_woarchive_impl<class boost::archive::binary_woarchive>::~binary_woarchive_impl<class boost::archive::binary_woarchive>(void)" (??1?$ ]
If I use the regular archives (binary_oarchive) I don't get any errors, and it runs as a charm! The compiler I am using is VC++ version 7.1/ I would be grateful if some could point me to the reason for this error. Thanks for your help Hilal
participants (1)
-
Hilal Shaath