Edit

Share via


Compiler Error C2014

preprocessor command must start as first nonwhite space

Remarks

The # sign of a preprocessor directive must be the first character on a line that is not white space. Ensure that the previous line doesn't contain a trailing escape.

Example

The following example generates C2014:

// C2014.cpp
// compile with: /c

int a; #define A   // C2014

int b;\
#define B   // C2014

int c;
#define C   // OK