PDA

View Full Version : Qt4 kccmp kde compiling issues (expected constructor...)



rbmj
12th February 2009, 21:33
Hi i'm using QT4 on Puppy Linux 4.00 dingo (though it shouldn't matter... i think), and i'm trying to compile several applications that use QT4. One is kccmp-0.2 with QT4 enabled in the .pro file. The other is KDE. Both are throwing errors that follow the general form:


/usr/include/QtDBus/qdbusextratypes.h:148: error: expected constructor, destructor, or type conversion before 'template'

//or

/usr/include/QtGui/qtgui.h:62: error: expected constructor, destructor, or type conversion before 'typedef'



Qt is installed correctly, and i think the problem lies somewhere inside what preprocessor defines are in qglobal.h

I have no idea how to fix this problem. I've searched google and asked on KDE forums and noone could help. Someone please help!

Now i know why noone likes proprocessor defined constants.

jacek
13th February 2009, 00:17
That project compiles fine on my system. There must be something wrong with Qt on your system. How did you install Qt?