|
|
我在fedora下开发qt应用程序,需要多线程.定义一线程类,可是编译总是出错:
expected name type before "{"token..
我的程序大致如下:
//a.h
#include <qthread.h>
class A : public QThread //好象是编译器没把QThread当作类
{
public:
virtual void run();
};
makefile里已经把qt-mt给加上了.
-Lqt-mt -L${QTLIB}
请教大虾们..问题会出在哪? |
|