我在编译《C++ GUI Programming with Qt3 》第17章多线程的例子是遇到如下问题,请问是什么原因?
谢谢啊!!
g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -I/usr/local/qt/mkspecs/default -I. -I. -I/usr/local/qt/include -o main.o main.cpp
In file included from threadform.h:6,
from main.cpp:3:
thread.h:7: parse error before `{' token
thread.h:15: parse error before `private'
thread.h:18: parse error before `}' token
In file included from main.cpp:3:
threadform.h:24: field `threadA' has incomplete type
threadform.h:25: field `threadB' has incomplete type
make: *** [main.o] Error 1