Compiler Error C2661
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 C2661.
function' : no overloaded function takes number parameters
Possible causes:
Incorrect actual parameters in function call.
Missing function declaration.
The following sample generates C2661:
// C2661.cpp
void func( int ){}
void func( int, int ){}
int main() {
func( ); // C2661 func( void ) was not declared
func( 1 ); // OK func( int ) was declared
}
Show: