Compiler Error C2198
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at 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
}
Show: