[Qt-interest] Problems compiling with XML
Kenneth Beck
nekkceb at comcast.net
Wed Feb 18 14:53:31 CET 2009
Ran qmake several times in fact. Two differences between the demo and my
app, I wonder if they make a difference:
1. My class does not have the Q_OBJECT macro
2. My class is a template. I could possibly convert away from that, but
if I dont have to, I wont.
Neither of these issues are mentioned in the xml documentation from Qt
that I can see. All it says is to add the QT+=xml to the .pro file.
I suppose I could throw together a demo program to see if any of this
makes a difference, but if someone has the answer right away I would
appreciate it.
Scott Aron Bloom wrote:
> 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