RSS
Follow Us
Contribute
 
 
 
 

Error C2008: (character): unexpected in macro definition

 
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 appears in Visual C++ when there is no space in between macro name and value in a preprocessor directive. Ex:

#define MACRO"value"

Solution

Put a space character between macro name and value.

#define MACRO "value"

 
 
 
 
Comments