Export (0) Print
Expand All
Expand Minimize

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

Community Additions

© 2014 Microsoft