编译报错,有没有高人指导下?
CommCmdManager.h:76:1: error: expected class-name before '{' token
CommInfrared.h中,定义了一个InHandler类:
class InHandler
{
public:
//InHandler(){};
virtual ~InHandler(){};
virtual char test(void *p) = 0;
};
CommCmdManager.h中,包含了CommInfrared.h,并继承上面的类:
#include "mcuhandler/CommInfrared.h"
class CommCmdManager:public ProtocolDebug, public InHandler //line75,这里错了吗?
{
char test(void * data);
...(略)
}
CommCmdManager.h:76:1: error: expected class-name before '{' token
CommInfrared.h中,定义了一个InHandler类:
class InHandler
{
public:
//InHandler(){};
virtual ~InHandler(){};
virtual char test(void *p) = 0;
};
CommCmdManager.h中,包含了CommInfrared.h,并继承上面的类:
#include "mcuhandler/CommInfrared.h"
class CommCmdManager:public ProtocolDebug, public InHandler //line75,这里错了吗?
{
char test(void * data);
...(略)
}