Привет всем!
Речь не идет о написании чего-то своего... Берем стандартный пример из assistant'а. Добавляем к нему #include <qthread.h>.
#include <qthread.h>
class MyThread : public QThread {
...
При компиляции получаем:
./make
g++ -c -pipe -Wall -W -O2 -g -pipe -march=i386 -mcpu=i686 -DGLX_GLXEXT_LEGACY -fno-use-cxa-atexit -fno-exceptions -DQT_NO_DEBUG -I/usr/lib/qt-3.1/mkspecs/default -I. -I. -I/usr/lib/qt-3.1/include -o ex1.o ex1.cpp
ex1.cpp:3: parse error before `{' token
ex1.cpp:12: invalid use of undefined type `class MyThread'
ex1.cpp:3: forward declaration of `class MyThread'
ex1.cpp: In member function `void MyThread::run()':
ex1.cpp:14: `sleep' undeclared (first use this function)
ex1.cpp:14: (Each undeclared identifier is reported only once for each function it appears in.)
ex1.cpp:15: `qDebug' undeclared (first use this function)
ex1.cpp: In function `int main()':
ex1.cpp:21: aggregate `MyThread a' has incomplete type and cannot be defined
ex1.cpp:22: aggregate `MyThread b' has incomplete type and cannot be defined
ex1.cpp:29:19: ex1.moc: No such file or directory
ex1.cpp:29:19: warning: no newline at end of file
make: *** [ex1.o] Ошибка 1
В чем проблема?
Библиотека QT - входящая в дистрибутив ASP10, компилировалось под ASP10.