Results 1 to 5 of 5

Thread: Error On release Mode

  1. #1
    Join Date
    Mar 2011
    Posts
    24
    Thanks
    1
    Thanked 3 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Error On release Mode

    Hi guys ...

    I am getting this error in release mode..

    Qt Code:
    1. c:\Qt\2010.05\qt\lib\libQtSvg.a(qsvghandler.o):qsvghandler.cpp:(.text+0x6e2): undefined reference to `_imp___Z7qstrtodPKcPS0_Pb'
    2.  
    3. collect2: ld returned 1 exit status
    To copy to clipboard, switch view to plain text mode 

    I am trying to build it in release mode with static Static Linking.. and i get that error..

    I googled the error and found out that was a bug in qt. Need a solution.

    I am using mingw and qt 4.7 .




    Thanks

  2. #2
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Error On release Mode

    Try replacing calls to qstrtod with the C system call strtod. That's assuming the call is in your code; if it's an internal Qt call, there's not much you can do other than switch to a Qt version that doesn't have the bug.

  3. #3
    Join Date
    Mar 2011
    Posts
    24
    Thanks
    1
    Thanked 3 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Error On release Mode

    i have no calls to the strtod. it must be an internal call. i worked real hard to build my code , i got executed in the debug mode. And when i changed to release mode, but got screwed up.i ran configure -static and make sub-src , and when i executed the code in release mode ,Bham i got this error and solutions


    Added after 55 minutes:


    Can i use cmake or should i go with shared linking
    Last edited by kurrachow; 16th April 2011 at 17:13.

  4. #4
    Join Date
    Mar 2011
    Posts
    24
    Thanks
    1
    Thanked 3 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Error On release Mode

    should i change the qt version to 4.7.3??

  5. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Error On release Mode

    According to this bug this particular problem was fixed in 4.7.1. It also offers a fix you could apply to 4.7.0 manually I guess.

Similar Threads

  1. Getting error on release mode
    By m_brott in forum Qt Programming
    Replies: 9
    Last Post: 24th March 2011, 13:56
  2. Replies: 1
    Last Post: 2nd November 2009, 12:02
  3. Replies: 9
    Last Post: 15th April 2009, 06:23
  4. Error in exe files in release mode
    By john_god in forum Installation and Deployment
    Replies: 2
    Last Post: 25th January 2009, 11:40
  5. qodbc driver not loaded error in release mode
    By mandal in forum Qt Programming
    Replies: 1
    Last Post: 14th November 2006, 09:42

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.