错误 C1019

意外的 #else

#else 指令出现在 #if#ifdef#ifndef 构造外部。 仅在这些构造之一中使用 #else

下面的示例生成 C1019:

// C1019.cpp
#else   // C1019
#endif

int main() {}

可能的解决方法:

// C1019b.cpp
#if 1
#else
#endif

int main() {}