Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 672 Bytes

compiler-error-c2449.md

File metadata and controls

25 lines (20 loc) · 672 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2449
Compiler Error C2449
11/04/2016
C2449
C2449
544bf0b6-daa0-40e8-9f21-8e583d472a2d

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