Export (0) Print
Expand All
Expand Minimize

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:
© 2015 Microsoft