Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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

Community Additions

ADD
Show:
© 2015 Microsoft