Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error C2661
Collapse the table of content
Expand the table of content

Compiler Error C2661

'function' : no overloaded function takes number parameters

Possible causes:

  1. Incorrect actual parameters in function call.

  2. 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
© 2015 Microsoft