473,320 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Connot compile Qt

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$_ZN19QDomNotat ionPrivateD1Ev+0x50):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN19QDomNotat ionPrivateD1Ev+0x68):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN19QDomNotat ionPrivateD0Ev+0x58):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN19QDomNotat ionPrivateD0Ev+0x69):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN17QDomEntit yPrivateD1Ev+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.

Sep 11 '05 #1
2 2490

"Paul" <pa********@web.de> schreef in bericht
news:11**********************@g14g2000cwa.googlegr oups.com...
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$_ZN19QDomNotat ionPrivateD1Ev+0x50):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN19QDomNotat ionPrivateD1Ev+0x68):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN19QDomNotat ionPrivateD0Ev+0x58):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN19QDomNotat ionPrivateD0Ev+0x69):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN17QDomEntit yPrivateD1Ev+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
Sep 11 '05 #2
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.

"Paul" <pa********@web.de> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
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$_ZN19QDomNotat ionPrivateD1Ev+0x50):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN19QDomNotat ionPrivateD1Ev+0x68):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN19QDomNotat ionPrivateD0Ev+0x58):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN19QDomNotat ionPrivateD0Ev+0x69):qdom.cpp:
undefined reference to `QString::free(QString::Data*)'
tmp\obj\release_shared\qdom.o(.text$_ZN17QDomEntit yPrivateD1Ev+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.

Sep 11 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: janeaustine50 | last post by:
Python's InteractiveInterpreter uses the built-in compile function. According to the ref. manual, it doesn't seem to concern about the encoding of the source string. When I hand in an unicode...
5
by: Carmine Cairo | last post by:
Hi, I'm working on a project and today I've note a little problem during the compile fase. Here a little piece of code: // 1st version welldone = 0; size = p->getSize(); backbone = new...
5
by: Brice Prunier | last post by:
Here under 4 schemas i'm working with ( it may be long: sorry...) The context is the following : Resident.xsd imports Person.xsd and includes Common.xsd ( anonimous schema: no TargetNamespace )...
10
by: Chris LaJoie | last post by:
Our company has been developing a program in C# for some time now, and we haven't had any problems with it, but just last night something cropped up that has me, and everyone else, stumped. I...
15
by: steve yee | last post by:
i want to detect if the compile is 32 bits or 64 bits in the source code itself. so different code are compiled respectively. how to do this?
16
by: desktop | last post by:
I have read that using templates makes types know at compile time and using inheritance the types are first decided at runtime. The use of pointers and casts also indicates that the types will...
1
by: brianrpsgt1 | last post by:
Newbie here.... I have been able to successful pull info from a MySQL DB, get the results and output them in an HTML format using Cheetah to the screen using IDLE. I am doing this on a Windows...
3
by: NvrBst | last post by:
Right now I have C99 code in .c extensions. I compile it in VSC++ and it complains about a lot of errors. I change the extensions to .cpp and compile in VSC++ and it succeeds. Is there a way...
6
by: Ed Leafe | last post by:
I've noticed an odd behavior with compile() and code that does not contain a trailing newline: if the last line is a comment inside of any block, a syntax error is thrown, but if the last line is a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.