Results 1 to 1 of 1

Thread: QT_MODULE() macro error?

  1. #1
    Join Date
    Jun 2008
    Posts
    64
    Thanks
    7
    Qt products
    Qt3 Qt4

    Question QT_MODULE() macro error?

    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!
    Last edited by batileon; 4th November 2009 at 09:58.

Similar Threads

  1. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  2. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  3. Qtopia core 4.2.2 cross compile make error
    By smiyai18 in forum Installation and Deployment
    Replies: 2
    Last Post: 28th August 2007, 17:04
  4. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19
  5. Qt-x11-commercial-src-4.2.0-snapshot-20060824 error
    By DevObject in forum Installation and Deployment
    Replies: 4
    Last Post: 24th August 2006, 23:31

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.