Subj : Re: Class in Header file To : borland.public.cpp.borlandcpp From : Jeff Baker Date : Wed May 19 2004 10:47 pm Try doing it like this; typedef class Blubb { public: Blubb(); // Constructor ~Blubb();// Destructor }blubb; Blubb::Blubb { } Blubb::~Blubb { } blubb blub; // access the class using blub.??? extern blubb blub; Hope this helps, - Jeff Baker "Michael Gebauer" wrote in message news:40a88245@newsgroups.borland.com... > Ok, this should be pretty easy, but I dont get the error. I´m declaring a > class in my header file, but always get a "declaration syntax error". Even > if I simplify it to: > (in Test.h) > > class List{}; > > 1 Line, thats it. But its not working. I´m using textpad and the free > borland c++ compiler. > > Anyone an idea? > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.688 / Virus Database: 449 - Release Date: 5/18/04 .