Compiler Error C2081
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

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 ) {}
© 2015 Microsoft