Compiler Error C2449

found '{' at file scope (missing function header?)

An opening curly brace ({) was found at file scope.

This error is probably caused by adding a semicolon between a function header and the opening curly brace of the function definition.

The following is an example of this error:

int __pascal func(void);  // extra semicolon on this line
{                         // error detected here