PDA

View Full Version : Error On release Mode



kurrachow
16th April 2011, 13:38
Hi guys ...

I am getting this error in release mode..


c:\Qt\2010.05\qt\lib\libQtSvg.a(qsvghandler.o):qsv ghandler.cpp:(.text+0x6e2): undefined reference to `_imp___Z7qstrtodPKcPS0_Pb'

collect2: ld returned 1 exit status

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

SixDegrees
16th April 2011, 16:10
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.

kurrachow
16th April 2011, 17:13
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

kurrachow
17th April 2011, 02:41
should i change the qt version to 4.7.3??

ChrisW67
17th April 2011, 06:03
According to this bug (http://bugreports.qt.nokia.com/browse/QTBUG-16254) this particular problem was fixed in 4.7.1. It also offers a fix you could apply to 4.7.0 manually I guess.