Connot compile Qt

P

Paul

I was trying to compile Qt-win-opensource-desktop-4.0.0 but always got
those "undefined reference" errors. For example (snippet of the
output):

qdom.cpp: undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN19QDomNotationPrivateD1Ev+0x50):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN19QDomNotationPrivateD1Ev+0x68):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN19QDomNotationPrivateD0Ev+0x58):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN19QDomNotationPrivateD0Ev+0x69):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN17QDomEntityPrivateD1Ev+0x68):qdom.cpp:
more undefined references to `QString::free(QString::Data*)' follow
mingw32-make[3]: *** [C:/qt/lib\QtXml4.dll] Error 1
mingw32-make[3]: Leaving directory `C:/qt/src/xml'
mingw32-make[2]: *** [release] Error 2
mingw32-make[2]: Leaving directory `C:/qt/src/xml'
mingw32-make[1]: *** [sub-xml-make_first-ordered] Error 2
mingw32-make[1]: Leaving directory `C:/qt/src'
mingw32-make: *** [sub-src-make_first-ordered] Error 2

I am using g++. Version 3.2.

Any suggestions?
Thanks in advance.
 
B

Bruintje Beer

Paul said:
I was trying to compile Qt-win-opensource-desktop-4.0.0 but always got
those "undefined reference" errors. For example (snippet of the
output):

qdom.cpp: undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN19QDomNotationPrivateD1Ev+0x50):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN19QDomNotationPrivateD1Ev+0x68):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN19QDomNotationPrivateD0Ev+0x58):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN19QDomNotationPrivateD0Ev+0x69):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN17QDomEntityPrivateD1Ev+0x68):qdom.cpp:
more undefined references to `QString::free(QString::Data*)' follow
mingw32-make[3]: *** [C:/qt/lib\QtXml4.dll] Error 1
mingw32-make[3]: Leaving directory `C:/qt/src/xml'
mingw32-make[2]: *** [release] Error 2
mingw32-make[2]: Leaving directory `C:/qt/src/xml'
mingw32-make[1]: *** [sub-xml-make_first-ordered] Error 2
mingw32-make[1]: Leaving directory `C:/qt/src'
mingw32-make: *** [sub-src-make_first-ordered] Error 2

I am using g++. Version 3.2.

Any suggestions?
Thanks in advance.
Hi,

try in news group for qt

trolltech.qt-interest

Johan
 
J

Justin Haygood

Place Qt 4.0 into C:\Qt\{version}\ (4.0.0 is probably you're case, 4.0.1 is
latest). Then set the QTDIR environment variable to that directory. That
should do the trick.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top