[Qt-interest] Problems compiling with XML

Scott Aron Bloom Scott.Bloom at sabgroup.com
Tue Feb 17 16:19:55 CET 2009


Make sure you re-ran qmake, and regenerated you vcproj/makefiles..

Scott

> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Kenneth Beck
> Sent: Tuesday, February 17, 2009 6:43 AM
> To: qt-interest at trolltech.com
> Subject: [Qt-interest] Problems compiling with XML
> 
> 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
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list