|
From: Mark j. <mar...@gm...> - 2008-10-17 05:51:57
|
Still issues with building the test-suite in debug. Release, Release (static) and debug (static) work ok. here are the first few... msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in quantlib-vc80-mt-gd-0_9_7.lib(errors.obj) msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: int __thiscall std::ios_base::setf(int,int)" (?setf@ios_base@std@@QAEHHH@Z) already defined in quantlib-vc80-mt-gd-0_9_7.lib(dataformatters.obj) msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: void __thiscall std::basic_ostringstream<char,struct std::char_traits<char>,class std::allocator<char> >::`vbase destructor'(void)" (??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ) already defined in quantlib-vc80-mt-gd-0_9_7.lib(errors.obj) msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_ostringstream<char,struct std::char_traits<char>,class std::allocator<char> >::basic_ostringstream<char,struct std::char_traits<char>,class std::allocator<char> >(int)" (??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z) already defined in quantlib-vc80-mt-gd-0_9_7.lib(errors.obj) msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall std::basic_ostringstream<char,struct std::char_traits<char>,class std::allocator<char> >::str(void)const " (?str@?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ) already defined in quantlib-vc80-mt-gd-0_9_7.lib(errors.obj) msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in quantlib-vc80-mt-gd-0_9_7.lib(errors.obj) msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: static float __cdecl std::numeric_limits<float>::max(void)" (?max@?$numeric_limits@M@std@@SAMXZ) already defined in quantlib-vc80-mt-gd-0_9_7.lib(dataformatters.obj) msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(unsigned int)" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@I@Z) already defined in quantlib-vc80-mt-gd-0_9_7.lib(tridiagonaloperator.obj) msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::_Container_base::~_Container_base(void)" (??1_Container_base@std@@QAE@XZ) already defined in quantlib-vc80-mt-gd-0_9_7.lib(errors.obj) msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: void __thiscall std::_Container_base::_Orphan_all(void)const " (?_Orphan_all@_Container_base@std@@QBEXXZ) already defined in quantlib-vc80-mt-gd-0_9_7.lib(errors.obj) msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::_Container_base::_Container_base(void)" (??0_Container_base@std@@QAE@XZ) already defined in quantlib-vc80-mt-gd-0_9_7.lib(errors.obj) msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::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 &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in quantlib-vc80-mt-gd-0_9_7.lib(errors.obj) 2008/10/13 Ferdinando Ametrano <na...@am...>: > Hi Mark > >> I am having trouble building the test-suite. >> Unresolved symbol errors in cdo.obj and calendars.obj. Excluding them from >> the build resolves the problem. >> >> Also when building the "debug" version, I got multiply defined symbols >> errors. >> These disappear when doing "debug static" > > I updated the VC8 project to include all the files added in the last > week. I successfully compiled and linked Release and Debug > configurations of Rev15633. > > BTW I noticed that while you commit modified/added/removed files, you > never commit updated projects: no problem about that, but I wonder if > you happen to have obsolete project files on your PC. If you're sure > you have up-to-date project files a "rebuild all" should fix any kind > of linking problems > > hope it helps > > ciao -- Nando > -- Quant Job Interview Questions and Answers is now out: www.markjoshi.com Assoc Prof Mark Joshi Centre for Actuarial Studies University of Melbourne My website is www.markjoshi.com |