Results 1 to 4 of 4

Thread: Code works with 4.3.3 but not with 4.4.0 (both commercial)

  1. #1

    Default Code works with 4.3.3 but not with 4.4.0 (both commercial)

    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:perator+<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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Code works with 4.3.3 but not with 4.4.0 (both commercial)

    The code compiles OK. The problem is in linking with STL. Did you configure Qt 4.4.0 with exactly the same options as 4.3.3?

  3. #3

    Default Re: Code works with 4.3.3 but not with 4.4.0 (both commercial)

    The way I configured was to install Qt from the setup and set up the path for the bin, include and the lib files...thats how I worked with qt 4.3.3 and so I thought it would work with 4.4.0

    I hope I answered your question.
    Cheers

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Code works with 4.3.3 but not with 4.4.0 (both commercial)

    Quote Originally Posted by akshay_blitz View Post
    The way I configured was to install Qt from the setup and set up the path for the bin, include and the lib files...thats how I worked with qt 4.3.3 and so I thought it would work with 4.4.0
    It should. Do you use the same toolchain as for 4.3.3? Is Qt 4.3.3 still on your disk?

Similar Threads

  1. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 21:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.