Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Compiler Error C2081

'identifier' : name in formal parameter list illegal

The identifier caused a syntax error.

This error can be caused by using the old style for the formal parameter list. You must specify the type of formal parameters in the formal parameter list.

The following sample generates C2081:

// C2081.c
void func( int i, j ) {}  // C2081, no type specified for j

Possible resolution:

// C2081b.c
// compile with: /c
void func( int i, int j ) {}
Show:
© 2015 Microsoft