Compiler Error C2267

'function' : static functions with block scope are illegal

The specified local function was declared as static.

Static functions must be declared with global scope.

The following is an example of this error:

void main()
{
    static int func1();    // error
}