PRB: Error C2599 Caused By Missing Semicolon or Closing Brace

ID Number: Q83080

7.00

MS-DOS

docerr

Summary:

SYMPTOMS

Under certain conditions, the Microsoft C/C++ Compiler version 7.0

returns the error:

error C2599: 'main' : local functions are not supported

CAUSE

This error is usually caused by a missing curly brace at the end of

the previous function.

RESOLUTION

The solution is to check the function preceding main and insert the

missing semicolon or closing curly brace (}).

This error is not documented anywhere in the Online Advisor, the

printed documentation, or QuickHelp.

Additional reference words: 7.00