RSS
Follow Us
Contribute
 
 
 
 

Error C2014: preprocessor command must start as first nonwhite space

 
We need YOUR SKILLS in this collaborative work, to build the largest solution center for error messages.

From $1

Table of contents
  1. 1. Cause
  2. 2. Solution

Cause

This error message is generated in Visual C++ when a preprocessor command comes after some other commands, definitions, or assignments in the same line. Ex:

int a; #include <stdio.h>

Solution

If you are using a preprocessor command, the line must start with that command, so make the commands and definitions, assignments seperated. For the above sample, it will be solved like this:

int a; 
#include <stdio.h>

Or you can use:

#include <stdio.h 
int a;
 
 
 
 
Comments