Hi Ray,
don't know wether this solves your problem, but you should remove the semicolon
in the statement
ClassDef(Testclass,1)
^^^
Tim
Ray Fliller III wrote:
>
> Rooters,
>
> I'm using ROOT v 2.23/12 on Red Hat Linux V5.0/x86 with GNU make 3.77
> and gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
>
> I'm trying to compile a class that I wrote, and when the dictionary
> gets compiled, I get the same error over and over, no matter what I do.
> So I tried compiling and loading the tetris program into ROOT, it worked
> fine using the Makefile in that directory.
> Next I made a testclass with an Int_t private memeber and some getters
> and setters to see if that would compile, no dice, same set of errors,
> but then by some miracle, it compiled and won't load into ROOT.
>
> Header: testclass.h
> #ifndef __Testclass__
> #define __Testclass__
>
> #include "TObject.h"
>
> class Testclass : public TObject{
>
> Int_t name;
>
> public:
> Testclass();
> virtual ~Testclass();
> Int_t GetTitle();
> void SetTitle(Int_t newtitle);
> ClassDef(Testclass,1);
> };
>
> #endif
snip...
------------------------------------------------------------------------
Tim Welters, III.Physikalisches Institut at the RWTH Aachen, Lehrstuhl B
Room: H.116 Tel.: +49(241)80-6355 Fax: +49(241)8888-244
Postal Address: Physikzentrum, RWTH Aachen, D-52056 Aachen
e-mail: welters@physik.rwth-aachen.de or Tim.Welters@cern.ch
------------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:33 MET