[Qt-interest] Problems compiling with XML
Kenneth Beck
nekkceb at comcast.net
Tue Feb 17 15:42:43 CET 2009
I am having trouble compiling an application after attempting to add XML
support. I added the line
QT += xml
to my .pro file and re-compiled, but I get an error message
"error C2146: syntax error : missing ';' before identifier 'QtXmlModule'"
on the line
QT_MODULE(Xml)
in qdom.h
This appears to be triggered as the compiler is processing the header
file for my class, at the include lines
#include <QDomDocument>
#include <QDomElement>
#include <QIODevice>
I can compile and run the examples related to XML, and it seems I am
satisfying all the requirements using those as a guide. Not sure where
to turn.
I am running Windows XP (Version 5.1.2600 Service Pack 3 Build 2600),
Microsoft Visual C++ .NET 2003, ver 7.1.6030 (sp 1)
Qt ver 4.3.4
More information about the Qt-interest-old
mailing list