sthread.h文件
#ifndef STHREAD_H
#define STHREAD_H
#include <qthread.h>
class DataForm;
class SThread : public QThread
{
public:
SThread();
void stop();
int ttyraw(int fd, int baud);
int ttyreset(int fd);
int OSOpenPort(const char *name, int baud);
void comRecv();
protected:
virtual void run();
private:
volatile bool stopped;
};
#endif //STHREAD_H
编译错误:
sthread.h : 8 : parse error before '{' token
sthread.h : 18 : parse error befor 'protected'
请大家帮帮忙……