PDA

View Full Version : QT_MODULE() macro error?



batileon
4th November 2009, 04:43
I want to compile a cgi for webservice interface, which worked fine in QT3
Now I needa port it to QT4


g++ -DHAVE_CONFIG_H -DDEBUG -I. -I. -I.. -I/usr/local/Trolltech/Qt-4.5.2/include:/usr/local/Trolltech/Qt-4.5.2/include/Qt:/usr/local/Trolltech/Qt-4.5.2/include/QtCore -I../../smartcard_include -I../../ui/smartCwidget/include -I/usr/local/Trolltech/Qt-4.5.2/include/Qt -I/usr/local/Trolltech/Qt-4.5.2/include/QtCore -I/usr/local/Trolltech/Qt-4.5.2/include/Qt3Support -I/usr/local/Trolltech/Qt-4.5.2/include/QtSql -I/usr/local/Trolltech/Qt-4.5.2/include/QtGui -I/usr/local/Trolltech/Qt-4.5.2/mkspecs/default -I../include -DWITH_COOKIES -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT3_SUPPORT -DLINUX -O2 -g -c -o ws_smartcard_cgi-ws_smartcardserver.o ./ws_smartcardserver.cpp

However, the following errors were found.

/usr/local/Trolltech/Qt-4.5.2/include/Qt/qapplication.h:66: error: expected constructor, destructor, or type conversion before 'typedef'
/usr/local/Trolltech/Qt-4.5.2/include/Qt/q3ptrlist.h:51: error: expected constructor, destructor, or type conversion before 'typedef'

And I found that qapplication.h:66 and q3ptrlist.h:51 are both referring to the QT_MODULE macro.

Can anyone tell me what's going wrong and how can I fix this?
Thanks!