E2141 Declaration Syntax Error

Hi all,

I am getting a E2141 Declaration Syntax Error in a header file and I cannot see why, the project I have was written in version 5 (working just fine) and am now trying to compile in 2009.

class TfrmUsers : public TForm ---> E2141 error

does anyone have an idea as to why this error is being thrown?


  • Impossible to tell without the full code. My random guess is that vcl.h isn't included, or that they renamed the header.
  • Thanks for reply,

    vcl.h is included in source file, Directories and Conditionals are correct. RAD Studio has vcl.h so I don't think this is the problem.

    Other modules in the compile list compile with no error, there is nothing in the header file i can see that would throw a declaration syntax problem. I have attached the header file which causes the problem for you to look at hope you can see something I don't. The problem may also be option settings but there is nothing in the error message that points me in that direction.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!