Compiler Error C2007

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Error C2007.

define syntax

No identifier appears after a #define. To resolve the error, use an identifier.

The following sample generates C2007:

// C2007.cpp  
#define   // C2007  

Possible resolution:

// C2007b.cpp  
// compile with: /c  
#define true 1  

Show: