Compiler Error C2449
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C2449.
found '{' at file scope (missing function header?)
An open brace occurs at file scope.
This error can be caused by a semicolon between a function header and the opening brace of the function definition.
The following sample generates C2499:
// C2449.c
// compile with: /c
void __stdcall func(void) {} // OK
void __stdcall func(void); // extra semicolon on this line
{ // C2449 detected here
Show: