NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

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.

Example

int main()
{
   int i = 0;

   int funcname(int j)  // error
   {
      j++;
      return j;
   }
   
   i = funcname(i);
   return 0;
}