编译器错误 C2008

“character”: 宏定义中的意外

Remarks

该字符紧跟在宏名称之后。 若要解决此错误,宏名称后面必须有一个空格。

Example

以下示例生成 C2008:

// C2008.cpp
#define TEST1"mytest1"    // C2008

Possible resolution:

// C2008b.cpp
// compile with: /c
#define TEST2 "mytest2"