Compiler Error C2014
Visual Studio 2015
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 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>
Show: