PDA

View Full Version : Compiling error with caps file names



Caius Aérobus
21st October 2008, 10:02
I have problems with a #include <QDomElement> line in a library (file not found). The file is here but it seems that the compiler does not make the translation QDomElement -> qdomelement.h
Where is the problem?

spirit
21st October 2008, 10:09
did you set path to Qt's includes?

Caius Aérobus
21st October 2008, 10:19
yes but it seems that it is now necessary to include QT/XML path...

spirit
21st October 2008, 10:21
did you add QT += xml to your pro-file?

Caius Aérobus
21st October 2008, 15:29
No because it works without it on my MacOSX computer but I have this problem on Linux Ubuntu and I suppose the reason is here. I will check it ASAP.

spirit
21st October 2008, 15:34
let's look to documentation:


To include the definitions of the module's classes, use the following directive:
#include <QtXml>
To link against the module, add this line to your qmake .pro file:
QT += xml


Configuring the Build Process (http://doc.trolltech.com/4.4/qtxml.html)