编译错误

在IDE中增加了一个C++工程,想在里面加一个类,但是编译时出错,
#ifndef RAW_DEVICE

#define RAW_DEVICE

class VlanDevice
{

};
#endif

出错信息是expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘:’ token
请问哪位知道错在哪里?

你用的是C的工程还是C++的工程呢。
C是不支持类的。

c++