John,
The ClassDef statement must appear after the class definition not before
Rene Brun
"Dr. John Krane" wrote:
>
> Hi,
>
> Has anybody had the problem where ClassDef is correctly in your class
> but it is completely ignored by root? When I .L ObjDate.cpp, I get
>
> Error in <ObjDate>: ObjDate inherits from TObject but does not have its
> own ClassDef
>
> ...but it does! From my header:
>
> #ifndef ObjDate_H
> #define ObjDate_H
> #include "TObject.h"
> // define as v1
> ClassDef(ObjDate,1)
> class ObjDate : public TObject {
> public:
> ObjDate();
>
> ...etc.
>
> Could there be any reason for this behavior?
>
> - John
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET