Compiler Error C2601
'function' : local function definitions are illegal
Code tries to define a function within a function.
Or, there may be an extra brace in your source code before the location of the C2601 error.
The following sample generates C2601:
// C2601.cpp
int main() {
int i = 0;
void funcname(int j) { // C2601
j++;
}
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for