Link problems with VC8 Beta 2
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.
Help!
Thanks,
Flavio.
1>Linking...
1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "class
std::basic_ostream
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
& __cdecl std::operator<< (class std::basic_ostream &,class std::basic_string const &)" (mailto:??$?6DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YAAAV?$basic_ostre... ??$?6DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@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
__cdecl std::operator+ (class std::basic_string const &,char const *)" (mailto:??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_strin... ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@PBD@Z ) already defined in libboost_serialization-vc71-mt-gd.lib(xml_oarchive.obj) 1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "class std::basic_string
__cdecl std::operator+ (class std::basic_string const &,class std::basic_string const &)" (mailto:??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_strin... ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@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
__cdecl std::operator+ (char const *,class std::basic_string const &)" (mailto:??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_strin... ??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@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@D@std@@QAE@XZ ??0?$allocator@D@std@@QAE@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@D@std@@QAE@ABV01@@Z ??0?$allocator@D@std@@QAE@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@D@std@@QBEIXZ ?max_size@?$allocator@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@locale@std@@AAEXPAVfacet@23@I@Z?_Addfac@_Locimp@locale@std@@AAEXPAVfacet@23@I@Z (private: void __thiscall std::locale::_Locimp::_Addfac(class std::locale::facet *,unsigned int)) imported in function "public: __thiscall std::locale::locale
(class std::locale const &,class boost::archive::codecvt_null<char> *)" (mailto:??$?0V?$codecvt_null@D@archive@boost@@@locale@std@@QAE@ABV01@PAV?$cod... ??$?0V?$codecvt_null@D@archive@boost@@@locale@std@@QAE@ABV01@PAV?$codecvt_null@D@archive@boost@@@Z ) 1>libboost_serialization-vc71-mt-gd.lib(basic_text_iprimitive.obj) : warning LNK4049: locally defined symbol mailto:?_Addfac@_Locimp@locale@std@@AAEXPAVfacet@23@I@Z?_Addfac@_Locimp@locale@std@@AAEXPAVfacet@23@I@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@locale@std@@AAE@ABV012@@Z??0_Locimp@locale@std@@AAE@ABV012@@Z
(private: __thiscall std::locale::_Locimp::_Locimp(class std::locale::_Locimp const &)) imported in function "public: __thiscall std::locale::locale
(class std::locale const &,class boost::archive::codecvt_null<char> *)" (mailto:??$?0V?$codecvt_null@D@archive@boost@@@locale@std@@QAE@ABV01@PAV?$cod... ??$?0V?$codecvt_null@D@archive@boost@@@locale@std@@QAE@ABV01@PAV?$codecvt_null@D@archive@boost@@@Z ) 1>libboost_serialization-vc71-mt-gd.lib(basic_text_iprimitive.obj) : warning LNK4049: locally defined symbol mailto:??0_Locimp@locale@std@@AAE@ABV012@@Z??0_Locimp@locale@std@@AAE@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@std@@QBEXXZ__imp_?_Xran@_String_base@std@@QBEXXZ
referenced in function "public: class std::basic_string
& __thiscall std::basic_string ::assign(class std::basic_string const &,unsigned int,unsigned int)" (mailto:?assign@?$basic_string@DU?$char_traits@D@std@@V?$_DebugHeapAllocator@... ?assign@?$basic_string@DU?$char_traits@D@std@@V?$_DebugHeapAllocator@D@2@@std@@QAEAAV12@ABV12@II@Z ) 1>libboost_serialization-vc71-mt-gd.lib(basic_text_iprimitive.obj) : error LNK2001: unresolved external symbol mailto:__imp_?_Xran@_String_base@std@@QBEXXZ__imp_?_Xran@_String_base@std@@QBEXXZ
1>libboost_serialization-vc71-mt-gd.lib(basic_text_oprimitive.obj) : error LNK2019: unresolved external symbol mailto:__imp_?_Xlen@_String_base@std@@QBEXXZ__imp_?_Xlen@_String_base@std@@QBEXXZ
referenced in function "protected: bool __thiscall std::basic_string
::_Grow(unsigned int,bool)" (mailto:?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$_DebugHeapAllocator@D... ?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$_DebugHeapAllocator@D@2@@std@@IAE_NI_N@Z ) 1>libboost_serialization-vc71-mt-gd.lib(basic_text_iprimitive.obj) : error LNK2001: unresolved external symbol mailto:__imp_?_Xlen@_String_base@std@@QBEXXZ__imp_?_Xlen@_String_base@std@@QBEXXZ
1>libboost_serialization-vc71-mt-gd.lib(xml_iarchive.obj) : error LNK2019: unresolved external symbol mailto:__imp_?begin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@...__imp_?begin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AViterator@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@Vxml_iarchive@archive@boost@@@archive@... ?load_end@?$basic_xml_iarchive@Vxml_iarchive@archive@boost@@@archive@boost@@IAEXPBD@Z )
1>libboost_serialization-vc71-mt-gd.lib(xml_grammar.obj) : error LNK2001: unresolved external symbol mailto:__imp_?begin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@...__imp_?begin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AViterator@12@XZ
1>libboost_serialization-vc71-mt-gd.lib(xml_iarchive.obj) : error LNK2019: unresolved external symbol mailto:__imp_?end@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@st...__imp_?end@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AViterator@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@Vxml_iarchive@archive@boost@@@archive@... ?load_end@?$basic_xml_iarchive@Vxml_iarchive@archive@boost@@@archive@boost@@IAEXPBD@Z )
1>libboost_serialization-vc71-mt-gd.lib(xml_grammar.obj) : error LNK2001: unresolved external symbol mailto:__imp_?end@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@st...__imp_?end@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AViterator@12@XZ
1>libboost_serialization-vc71-mt-gd.lib(xml_grammar.obj) : error LNK2019: unresolved external symbol mailto:__imp_?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@...__imp_?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@Vconst_iterator@12@0@Z
referenced in function "public: void __thiscall boost::archive::`anonymous namespace'::append_string
,class std::basic_string ::const_iterator>::operator()(class std::basic_string ::const_iterator,class std::basic_string ::const_iterator)const " (mailto:??R?$append_string@V?$basic_string@DU?$char_traits@D@std@@V?$allocato... ??R?$append_string@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@Vconst_iterator@12@@?A0x6748d6fd@archive@boost@@QBEXVconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z ) _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org 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"
participants (2)
-
Flavio Antonioli
-
Victor A. Wagner Jr.