akshay_blitz
5th June 2008, 19:07
Hi,
I have been using 4.3.3 commercial for sometime now and have shifted to 4.4.0 commercial...I tried using the same code that ran perfectly well on 4.3.3 but it doesnt compile on 4.4.0 :(
Heres is what VS2005 cries out :
1>Linking...
1>qtmain.lib(qtmain_win.obj) : 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 &)" (??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std @@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$al locator@D@2@@0@ABV10@0@Z) already defined in msvcprt.lib(MSVCP80.dll)
1>release\Hello.exe : fatal error LNK1169: one or more multiply defined symbols found
1>Build log was saved at "file://c:\Documents and Settings\Cyberwarrior\My Documents\Visual Studio 2005\Projects\MVC Triangles\release\BuildLog.htm"
1>Hello - 2 error(s), 34 warning(s)
I have no idea whats going on ?
I only changed the QTDIR environment variable when I shifted from 4.3.3 to 4.4.0 (everything else was exactly the same)
Any help would be great !
thanks
Akshay
I have been using 4.3.3 commercial for sometime now and have shifted to 4.4.0 commercial...I tried using the same code that ran perfectly well on 4.3.3 but it doesnt compile on 4.4.0 :(
Heres is what VS2005 cries out :
1>Linking...
1>qtmain.lib(qtmain_win.obj) : 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 &)" (??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std @@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$al locator@D@2@@0@ABV10@0@Z) already defined in msvcprt.lib(MSVCP80.dll)
1>release\Hello.exe : fatal error LNK1169: one or more multiply defined symbols found
1>Build log was saved at "file://c:\Documents and Settings\Cyberwarrior\My Documents\Visual Studio 2005\Projects\MVC Triangles\release\BuildLog.htm"
1>Hello - 2 error(s), 34 warning(s)
I have no idea whats going on ?
I only changed the QTDIR environment variable when I shifted from 4.3.3 to 4.4.0 (everything else was exactly the same)
Any help would be great !
thanks
Akshay