Compiler Error C2599 (Windows CE 5.0)
'function' : local functions are not supported
A function is defined inside the body of another function.
This error is caused by missing closing curly brace in a function definition.
The following example shows ways this error might occur.
void func1()
{
// Missing a closing curly brace here
void func2() {} // Error detected on this line
void func3()
{
void func4() {} // Error detected on this line
} // Local functions not allowed
Send Feedback on this topic to the authors