Export (0) Print
Expand All
Expand Minimize

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.


// C2601.cpp
int main()
   int i = 0;

   int funcname(int j)  // C2601
      return j;
   i = funcname(i);
   return 0;
© 2014 Microsoft