Boost logo

Boost Users :

From: Lawrence Spector (Lawrence.Spector_at_[hidden])
Date: 2006-11-30 11:09:11


Ok, I got past the errors I was having last night. Seemed to have to do
with the ordering of the libraries and then an incorrect constant used
in the load method.

Moving on, I now get the following linker errors:

 

Linking...

   Creating library Debug/SerializationDemo.lib and object
Debug/SerializationDemo.exp

demo.obj : error LNK2019: unresolved external symbol "public: __thiscall
boost::archive::basic_text_oprimitive<class std::basic_ostream<unsigned
short,struct std::char_traits<unsigned short> >
>::~basic_text_oprimitive<class std::basic_ostream<unsigned short,struct
std::char_traits<unsigned short> > >(void)"
(??1?$basic_text_oprimitive_at_V?$basic_ostream_at_GU?$char_traits_at_G@std@@@std
@@@archive_at_boost@@QAE_at_XZ) referenced in function "public: __thiscall
boost::archive::text_woarchive_impl<class
boost::archive::text_woarchive>::~text_woarchive_impl<class
boost::archive::text_woarchive>(void)"
(??1?$text_woarchive_impl_at_Vtext_woarchive_at_archive@boost@@@archive_at_boost@
@QAE_at_XZ)

demo.obj : error LNK2019: unresolved external symbol "public: __thiscall
boost::archive::text_wiarchive_impl<class
boost::archive::text_wiarchive>::text_wiarchive_impl<class
boost::archive::text_wiarchive>(class std::basic_istream<unsigned
short,struct std::char_traits<unsigned short> > &,unsigned int)"
(??0?$text_wiarchive_impl_at_Vtext_wiarchive_at_archive@boost@@@archive_at_boost@
@QAE_at_AAV?$basic_istream_at_GU?$char_traits_at_G@std@@@std@@I_at_Z) referenced in
function "public: __thiscall
boost::archive::text_wiarchive::text_wiarchive(class
std::basic_istream<unsigned short,struct std::char_traits<unsigned
short> > &,unsigned int)"
(??0text_wiarchive_at_archive@boost@@QAE_at_AAV?$basic_istream_at_GU?$char_traits
@G_at_std@@@std@@I_at_Z)

demo.obj : error LNK2019: unresolved external symbol "public: __thiscall
boost::archive::basic_text_iprimitive<class std::basic_istream<unsigned
short,struct std::char_traits<unsigned short> >
>::~basic_text_iprimitive<class std::basic_istream<unsigned short,struct
std::char_traits<unsigned short> > >(void)"
(??1?$basic_text_iprimitive_at_V?$basic_istream_at_GU?$char_traits_at_G@std@@@std
@@@archive_at_boost@@QAE_at_XZ) referenced in function "public: __thiscall
boost::archive::text_wiarchive_impl<class
boost::archive::text_wiarchive>::~text_wiarchive_impl<class
boost::archive::text_wiarchive>(void)"
(??1?$text_wiarchive_impl_at_Vtext_wiarchive_at_archive@boost@@@archive_at_boost@
@QAE_at_XZ)

demo.obj : error LNK2019: unresolved external symbol "public: __thiscall
boost::archive::basic_text_oprimitive<class std::basic_ostream<unsigned
short,struct std::char_traits<unsigned short> >
>::basic_text_oprimitive<class std::basic_ostream<unsigned short,struct
std::char_traits<unsigned short> > >(class std::basic_ostream<unsigned
short,struct std::char_traits<unsigned short> > &,bool)"
(??0?$basic_text_oprimitive_at_V?$basic_ostream_at_GU?$char_traits_at_G@std@@@std
@@@archive_at_boost@@QAE_at_AAV?$basic_ostream_at_GU?$char_traits_at_G@std@@@std@@_N
@Z) referenced in function "public: __thiscall
boost::archive::text_woarchive_impl<class
boost::archive::text_woarchive>::text_woarchive_impl<class
boost::archive::text_woarchive>(class std::basic_ostream<unsigned
short,struct std::char_traits<unsigned short> > &,unsigned int)"
(??0?$text_woarchive_impl_at_Vtext_woarchive_at_archive@boost@@@archive_at_boost@
@QAE_at_AAV?$basic_ostream_at_GU?$char_traits_at_G@std@@@std@@I_at_Z)

Debug/SerializationDemo.exe : fatal error LNK1120: 4 unresolved
externals

 

 

However, if I change the build type to not be unicode, then it all
compiles, links, and works.

I checked to see what libraries are being linked in a non- unicode build
vs. a unicode:

 

Non-Unicode:

 

Linking to lib file: libboost_serialization-vc71-sgd-1_33_1.lib // Good

Linking to lib file: libboost_serialization-vc71-sgd-1_33_1.lib // Good

 

Unicode:

 

Linking to lib file: libboost_wserialization-vc71-sgd-1_33_1.lib // Good

Linking to lib file: libboost_serialization-vc71-sgd-1_33_1.lib // Why??

Linking to lib file: libboost_serialization-vc71-sgd-1_33_1.lib // Why??

 

Any ideas? Does the boost serialization possibly have unicode issues in
1.33.1?

Thanks in advance,

 

Lawrence



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