| description | Learn more about: Compiler Error C2511 | |
|---|---|---|
| title | Compiler Error C2511 | |
| ms.date | 11/04/2016 | |
| f1_keywords |
|
|
| helpviewer_keywords |
|
|
| ms.assetid | df999efe-fe2b-418b-bb55-4af6a0592631 |
'identifier' : overloaded member function not found in 'class'
No version of the function is declared with the specified parameters. Possible causes:
-
Wrong parameters passed to function.
-
Parameters passed in wrong order.
-
Incorrect spelling of parameter names.
The following sample generates C2511:
// C2511.cpp
// compile with: /c
class C {
int c_2;
int Func(char *, char *);
};
int C::Func(char *, char *, int i) { // C2511
// try the following line instead
// int C::Func(char *, char *) {
return 0;
}