Edit

Share via


Compiler Error C2198

'function' : too few arguments for call

The compiler found too few parameters for a call to the function, or an incorrect function declaration.

The following sample generates C2198:

// C2198.c
// compile with: /c
void func( int, int );
int main() {
   func( 1 );   // C2198 only one actual parameter
   func( 1, 1 );   // OK
}