Boost logo

Boost Users :

From: Victor A. Wagner Jr. (vawjr_at_[hidden])
Date: 2005-04-25 17:18:19


At Monday 2005-04-25 03:38, you wrote:
>I'm trying to build my application with Visual Studio 2005 Beta 2 and I'm
>having the
>following horrilbe linking problems. I'm using Boost 1.32.0, which I've
>rebuilt with
>VS2005 using the vc-8_0 tools option.
>The errors are in 2 groups, "already defined" and unresolved external
>symbols.
>I don't get any errors or warnings with VS .Net 2003 7.1 compiler.

that sounds like somehow you've gotten mixed up compile options.
I managed to destroy my 1.32 libraries when we started testing 1.33 so I
can't test anything right now from 1.32 I'll try to recover them.

>Help!
>
>Thanks,
>Flavio.
>
>1>Linking...
>
>1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "class
>std::basic_ostream<char,struct std::char_traits<char> > & __cdecl
>std::operator<<<char,struct std::char_traits<char>,class
>std::allocator<char> >(class std::basic_ostream<char,struct
>std::char_traits<char> > &,class std::basic_string<char,struct
>std::char_traits<char>,class std::allocator<char> > const &)"
>(<mailto:??$?6DU?$char_traits_at_D@std@@V?$allocator_at_D@1@@std@@YAAAV?$basic_ostream_at_DU?$char_traits_at_D@std@@@0_at_AAV10@ABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@0@@Z>
>??$?6DU?$char_traits_at_D@std@@V?$allocator_at_D@1@@std@@YAAAV?$basic_ostream_at_DU?$char_traits_at_D@std@@@0_at_AAV10@ABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@0@@Z
>)
>already defined in libboost_serialization-vc71-mt-gd.lib(xml_oarchive.obj)
>
>1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "class
>std::basic_string<char,struct std::char_traits<char>,class
>std::allocator<char> > __cdecl std::operator+<char,struct
>std::char_traits<char>,class std::allocator<char> >(class
>std::basic_string<char,struct std::char_traits<char>,class
>std::allocator<char> > const &,char const *)"
>(<mailto:??$?HDU?$char_traits_at_D@std@@V?$allocator_at_D@1@@std@@YA?AV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@0_at_ABV10@PBD_at_Z>
>??$?HDU?$char_traits_at_D@std@@V?$allocator_at_D@1@@std@@YA?AV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@0_at_ABV10@PBD_at_Z
>)
>already defined in libboost_serialization-vc71-mt-gd.lib(xml_oarchive.obj)
>
>1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "class
>std::basic_string<char,struct std::char_traits<char>,class
>std::allocator<char> > __cdecl std::operator+<char,struct
>std::char_traits<char>,class std::allocator<char> >(class
>std::basic_string<char,struct std::char_traits<char>,class
>std::allocator<char> > const &,class std::basic_string<char,struct
>std::char_traits<char>,class std::allocator<char> > const &)"
>(<mailto:??$?HDU?$char_traits_at_D@std@@V?$allocator_at_D@1@@std@@YA?AV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@0_at_ABV10@0_at_Z>
>??$?HDU?$char_traits_at_D@std@@V?$allocator_at_D@1@@std@@YA?AV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@0_at_ABV10@0_at_Z
>)
>already defined in libboost_serialization-vc71-mt-gd.lib(xml_oarchive.obj)
>
>1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "class
>std::basic_string<char,struct std::char_traits<char>,class
>std::allocator<char> > __cdecl std::operator+<char,struct
>std::char_traits<char>,class std::allocator<char> >(char const *,class
>std::basic_string<char,struct std::char_traits<char>,class
>std::allocator<char> > const &)"
>(<mailto:??$?HDU?$char_traits_at_D@std@@V?$allocator_at_D@1@@std@@YA?AV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@0_at_PBDABV10@@Z>
>??$?HDU?$char_traits_at_D@std@@V?$allocator_at_D@1@@std@@YA?AV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@0_at_PBDABV10@@Z
>)
>already defined in libboost_serialization-vc71-mt-gd.lib(xml_oarchive.obj)
>
>1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall
>std::allocator<char>::allocator<char>(void)"
>(<mailto:??0?$allocator_at_D@std@@QAE_at_XZ> ??0?$allocator_at_D@std@@QAE_at_XZ)
>already defined in
>libboost_serialization-vc71-mt-gd.lib(basic_text_oprimitive.obj)
>
>1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall
>std::allocator<char>::allocator<char>(class std::allocator<char> const &)"
>(<mailto:??0?$allocator_at_D@std@@QAE_at_ABV01@@Z>
>??0?$allocator_at_D@std@@QAE_at_ABV01@@Z) already defined in
>libboost_serialization-vc71-mt-gd.lib(basic_text_oprimitive.obj)
>
>1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: unsigned int
>__thiscall std::allocator<char>::max_size(void)const "
>(<mailto:?max_size@?$allocator_at_D@std@@QBEIXZ>
>?max_size@?$allocator_at_D@std@@QBEIXZ) already defined in
>libboost_serialization-vc71-mt-gd.lib(basic_text_oprimitive.obj)
>
>1>libboost_serialization-vc71-mt-gd.lib(basic_text_oprimitive.obj) : warning
>LNK4217: locally defined symbol
><mailto:?_Addfac@_Locimp_at_locale@std@@AAEXPAVfacet_at_23@I_at_Z>?_Addfac@_Locimp_at_locale@std@@AAEXPAVfacet_at_23@I_at_Z
>(private: void __thiscall
>std::locale::_Locimp::_Addfac(class std::locale::facet *,unsigned int))
>imported in function "public: __thiscall std::locale::locale<class
>boost::archive::codecvt_null<char> >(class std::locale const &,class
>boost::archive::codecvt_null<char> *)"
>(<mailto:??$?0V?$codecvt_null_at_D@archive_at_boost@@@locale_at_std@@QAE_at_ABV01@PAV?$codecvt_null_at_D@archive_at_boost@@@Z>
>??$?0V?$codecvt_null_at_D@archive_at_boost@@@locale_at_std@@QAE_at_ABV01@PAV?$codecvt_null_at_D@archive_at_boost@@@Z
>)
>
>1>libboost_serialization-vc71-mt-gd.lib(basic_text_iprimitive.obj) : warning
>LNK4049: locally defined symbol
><mailto:?_Addfac@_Locimp_at_locale@std@@AAEXPAVfacet_at_23@I_at_Z>?_Addfac@_Locimp_at_locale@std@@AAEXPAVfacet_at_23@I_at_Z
>(private: void __thiscall
>std::locale::_Locimp::_Addfac(class std::locale::facet *,unsigned int))
>imported
>
>1>libboost_serialization-vc71-mt-gd.lib(basic_text_oprimitive.obj) : warning
>LNK4217: locally defined symbol
><mailto:??0_Locimp_at_locale@std@@AAE_at_ABV012@@Z>??0_Locimp_at_locale@std@@AAE_at_ABV012@@Z
>
>(private: __thiscall std::locale::_Locimp::_Locimp(class
>std::locale::_Locimp const &)) imported in function "public: __thiscall
>std::locale::locale<class boost::archive::codecvt_null<char> >(class
>std::locale const &,class boost::archive::codecvt_null<char> *)"
>(<mailto:??$?0V?$codecvt_null_at_D@archive_at_boost@@@locale_at_std@@QAE_at_ABV01@PAV?$codecvt_null_at_D@archive_at_boost@@@Z>
>??$?0V?$codecvt_null_at_D@archive_at_boost@@@locale_at_std@@QAE_at_ABV01@PAV?$codecvt_null_at_D@archive_at_boost@@@Z
>)
>
>1>libboost_serialization-vc71-mt-gd.lib(basic_text_iprimitive.obj) : warning
>LNK4049: locally defined symbol
><mailto:??0_Locimp_at_locale@std@@AAE_at_ABV012@@Z>??0_Locimp_at_locale@std@@AAE_at_ABV012@@Z
>
>(private: __thiscall std::locale::_Locimp::_Locimp(class
>std::locale::_Locimp const &)) imported
>
>1>libboost_serialization-vc71-mt-gd.lib(basic_text_oprimitive.obj) : error
>LNK2019: unresolved external symbol
><mailto:__imp_?_Xran@_String_base_at_std@@QBEXXZ>__imp_?_Xran@_String_base_at_std@@QBEXXZ
>
>referenced in function "public: class std::basic_string<char,struct
>std::char_traits<char>,class std::_DebugHeapAllocator<char> > & __thiscall
>std::basic_string<char,struct std::char_traits<char>,class
>std::_DebugHeapAllocator<char> >::assign(class std::basic_string<char,struct
>std::char_traits<char>,class std::_DebugHeapAllocator<char> > const
>&,unsigned int,unsigned int)"
>(<mailto:?assign@?$basic_string_at_DU?$char_traits_at_D@std@@V?$_DebugHeapAllocator_at_D@2@@std@@QAEAAV12_at_ABV12@II_at_Z>
>?assign@?$basic_string_at_DU?$char_traits_at_D@std@@V?$_DebugHeapAllocator_at_D@2@@std@@QAEAAV12_at_ABV12@II_at_Z
>)
>
>1>libboost_serialization-vc71-mt-gd.lib(basic_text_iprimitive.obj) : error
>LNK2001: unresolved external symbol
><mailto:__imp_?_Xran@_String_base_at_std@@QBEXXZ>__imp_?_Xran@_String_base_at_std@@QBEXXZ
>
>1>libboost_serialization-vc71-mt-gd.lib(basic_text_oprimitive.obj) : error
>LNK2019: unresolved external symbol
><mailto:__imp_?_Xlen@_String_base_at_std@@QBEXXZ>__imp_?_Xlen@_String_base_at_std@@QBEXXZ
>
>referenced in function "protected: bool __thiscall
>std::basic_string<char,struct std::char_traits<char>,class
>std::_DebugHeapAllocator<char> >::_Grow(unsigned int,bool)"
>(<mailto:?_Grow@?$basic_string_at_DU?$char_traits_at_D@std@@V?$_DebugHeapAllocator_at_D@2@@std@@IAE_NI_N_at_Z>
>?_Grow@?$basic_string_at_DU?$char_traits_at_D@std@@V?$_DebugHeapAllocator_at_D@2@@std@@IAE_NI_N_at_Z
>)
>
>1>libboost_serialization-vc71-mt-gd.lib(basic_text_iprimitive.obj) : error
>LNK2001: unresolved external symbol
><mailto:__imp_?_Xlen@_String_base_at_std@@QBEXXZ>__imp_?_Xlen@_String_base_at_std@@QBEXXZ
>
>1>libboost_serialization-vc71-mt-gd.lib(xml_iarchive.obj) : error LNK2019:
>unresolved external symbol
><mailto:__imp_?begin@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE?AViterator_at_12@XZ>__imp_?begin@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE?AViterator_at_12@XZ
>
>referenced in function "protected: void __thiscall
>boost::archive::basic_xml_iarchive<class
>boost::archive::xml_iarchive>::load_end(char const *)"
>(<mailto:?load_end@?$basic_xml_iarchive_at_Vxml_iarchive_at_archive@boost@@@archive_at_boost@@IAEXPBD_at_Z>
>?load_end@?$basic_xml_iarchive_at_Vxml_iarchive_at_archive@boost@@@archive_at_boost@@IAEXPBD_at_Z
>)
>
>1>libboost_serialization-vc71-mt-gd.lib(xml_grammar.obj) : error LNK2001:
>unresolved external symbol
><mailto:__imp_?begin@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE?AViterator_at_12@XZ>__imp_?begin@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE?AViterator_at_12@XZ
>
>
>1>libboost_serialization-vc71-mt-gd.lib(xml_iarchive.obj) : error LNK2019:
>unresolved external symbol
><mailto:__imp_?end@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE?AViterator_at_12@XZ>__imp_?end@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE?AViterator_at_12@XZ
>
>referenced in function "protected: void __thiscall
>boost::archive::basic_xml_iarchive<class
>boost::archive::xml_iarchive>::load_end(char const *)"
>(<mailto:?load_end@?$basic_xml_iarchive_at_Vxml_iarchive_at_archive@boost@@@archive_at_boost@@IAEXPBD_at_Z>
>?load_end@?$basic_xml_iarchive_at_Vxml_iarchive_at_archive@boost@@@archive_at_boost@@IAEXPBD_at_Z
>)
>
>1>libboost_serialization-vc71-mt-gd.lib(xml_grammar.obj) : error LNK2001:
>unresolved external symbol
><mailto:__imp_?end@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE?AViterator_at_12@XZ>__imp_?end@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE?AViterator_at_12@XZ
>
>
>1>libboost_serialization-vc71-mt-gd.lib(xml_grammar.obj) : error LNK2019:
>unresolved external symbol
><mailto:__imp_?append@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAEAAV12_at_Vconst_iterator_at_12@0_at_Z>__imp_?append@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAEAAV12_at_Vconst_iterator_at_12@0_at_Z
>
>referenced in function "public: void __thiscall boost::archive::`anonymous
>namespace'::append_string<class std::basic_string<char,struct
>std::char_traits<char>,class std::allocator<char> >,class
>std::basic_string<char,struct std::char_traits<char>,class
>std::allocator<char> >::const_iterator>::operator()(class
>std::basic_string<char,struct std::char_traits<char>,class
>std::allocator<char> >::const_iterator,class std::basic_string<char,struct
>std::char_traits<char>,class std::allocator<char> >::const_iterator)const "
>(<mailto:??R?$append_string_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@Vconst_iterator_at_12@@?A0x6748d6fd_at_archive@boost@@QBEXVconst_iterator@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@0_at_Z>
>??R?$append_string_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@Vconst_iterator_at_12@@?A0x6748d6fd_at_archive@boost@@QBEXVconst_iterator@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@0_at_Z
>)
>
>_______________________________________________
>Boost-users mailing list
>Boost-users_at_[hidden]
>http://lists.boost.org/mailman/listinfo.cgi/boost-users

Victor A. Wagner Jr. http://rudbek.com
The five most dangerous words in the English language:
               "There oughta be a law"


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