This documentation is archived and is not being maintained.

Compiler Error C2191

Error Message

second parameter list longer than first

A C function was declared a second time with a longer parameter list. C does not support overloaded functions.


The following sample generates C2191:

// C2191.c
// compile with: /Za /c
void func( int );
void func( int, float );   // C2191 different parameter list
void func2( int, float );   // OK