This documentation is archived and is not being maintained.

Compiler Error C2661

'function' : no overloaded function takes number parameters

Possible cause

  • Incorrect actual parameters in function call.
  • Missing function declaration.

Example

// 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: