Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 703 Bytes

compiler-error-c2081.md

File metadata and controls

30 lines (23 loc) · 703 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2081
Compiler Error C2081
11/04/2016
C2081
C2081
7db9892d-364d-4178-a49d-f8398ece09a0

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 ) {}