Share via


Compiler Error C2014

preprocessor command must start as first nonwhite space

The # sign of a preprocessor directive must be the first character on a line that is not white space.

The following sample generates C2014:

// C2014.cpp
int k; #include <stdio.h>   // C2014

Possible resolution:

// C2014b.cpp
// compile with: /c
int k; 
#include <stdio.h>