编译器错误 C2191

第二个参数列表比第一个长

使用更长的参数列表第再次声明了 C 函数。 C 不支持重载函数。

示例

以下示例生成 C2191:

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