Export (0) Print
Expand All
Expand Minimize

Compiler Error C2447

'{' : missing function header (old-style formal list?)

The compiler encountered an unexpected open brace at global scope. In most cases, this is caused by a badly-formed function header, a misplaced declaration, or a stray semi-colon. To resolve this issue, verify that the open brace follows a correctly-formed function header, and is not preceded by a declaration or a stray semi-colon.

This error can also be caused by an old-style C-language formal argument list. To resolve this issue, refactor the argument list to use modern style—that is, enclosed in parentheses.

The following sample generates C2447:

// C2447.cpp
int c;
{}       // C2447
© 2014 Microsoft