E2040 Declaration terminated incorrectly (C++)
Go Up to Compiler Errors And Warnings (C++) Index
A declaration has an extra or incorrect termination symbol, such as a semicolon placed after a function body.
A C++ member function declared in a class with a semicolon between the header and the opening left brace also generates this error.