Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 745 Bytes

compiler-error-c2055.md

File metadata and controls

24 lines (19 loc) · 745 Bytes
description title ms.date f1_keywords helpviewer_keywords
Learn more about: Microsoft Visual C++ compiler error C2055
Compiler error C2055
06/10/2024
C2055
C2055

Compiler error C2055

expected formal parameter list, not a type list

A function definition contains a parameter type list instead of a formal parameter list. ANSI C requires formal parameters to be named unless they're void or an ellipsis (...).

An example of a named formal parameter is the int i in void func(int i).
A parameter type list is a list of types, for example, int, char.

The following code generates error C2055:

// C2055.c
// compile with: /c
void func(int, char) {}  // C2055
void func (int i, char c) {} // OK