• Advertisement
Sign in to follow this  

VSC++ 2005 linking errors, and making a static library

This topic is 3870 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok the first a foremost the biggest problem, I trying to take a project I started in VS6 to VS2005, I've gotten close to finally getting it to work, but I keep getting this list of errors about redefinitions within my "static library". The library is one I compile with VS6 (from what I've found that might be the cause but I'm having problems compiling the lib in VS2005, but more on that later) Here's what the compiler spits out
Generating Code...
Skipping... (no relevant changes detected)
game.cpp
Linking...
msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: void __thiscall std::basic_ifstream<char,struct std::char_traits<char> >::`vbase destructor'(void)" (??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in zolo3.lib(zolomenu.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> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in zolo3.lib(zgfxfont.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 zolo3.lib(zgfxfont.obj)
msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: class std::basic_istream<char,struct std::char_traits<char> > & __thiscall std::basic_istream<char,struct std::char_traits<char> >::operator>>(int &)" (??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAH@Z) already defined in zolo3.lib(zolomenu.obj)
msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: class std::basic_istream<char,struct std::char_traits<char> > & __thiscall std::basic_istream<char,struct std::char_traits<char> >::operator>>(float &)" (??5?$basic_istream@DU?$char_traits@D@std@@@std@@QAEAAV01@AAM@Z) already defined in zolo3.lib(zolomenu.obj)
msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: bool __thiscall std::ios_base::eof(void)const " (?eof@ios_base@std@@QBE_NXZ) already defined in zolo3.lib(zolomenu.obj)
msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) already defined in zolo3.lib(zgfxfont.obj)
msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_ifstream<char,struct std::char_traits<char> >::basic_ifstream<char,struct std::char_traits<char> >(void)" (??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@XZ) already defined in zolo3.lib(zolomenu.obj)
msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in zolo3.lib(zgfxscene.obj)
LINK : fatal error LNK1104: cannot open file 'LIBCD.lib'

Now as for my static lib problems, Everything goes well and it says it created "zolo2005.lib", in the project folder, yet when I go there the file is non existant. I don't even know where to start on that one?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement