Results 1 to 2 of 2

Thread: Problem with QThread after linux rebuild

  1. #1
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Problem with QThread after linux rebuild

    Hi all !
    Have some project that was build under FreeBSD. I try rebuild it after Linux and in some header file i got strange error
    Qt Code:
    1. #ifndef POOLER_H
    2. #define POOLER_H
    3.  
    4. #include <qthread.h>
    5.  
    6. class QPooler: public QThread
    7. -->(77){
    8. ***
    9. };
    10. #endif
    To copy to clipboard, switch view to plain text mode 

    sirius-test:/home/volodya/router # g++ -c -pipe -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -Wall -W -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/lib/qt3/mkspecs/linux-g++ -I. -I. -I/usr/include -I/usr/lib/qt3/include -o main.o main.cpp
    In file included from main.cpp:2:
    qpooler.h:77: error: parse error before `{' token
    a life without programming is like an empty bottle

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Problem with QThread after linux rebuild

    Do you have a CONFIG+=thread in your project file?

  3. The following user says thank you to wysota for this useful post:

    zlatko (17th October 2006)

Similar Threads

  1. Replies: 4
    Last Post: 10th May 2006, 22:37

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.