RSS
Follow Us
Contribute
 
 
 
 

Error C2010: (character): unexpected in macro formal parameter list

 
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 formal parameter list of a macro definition contains illegal characters. Ex:

#define MACRO(a<) (a + a)

Solution

Remove the illegal characters from the macro definition.

#define MACRO(a) (a + a)

 
 
 
 
Comments