---------- Forwarded Message ----------
Subject: Re: [ROOT] ClassDef statement is ignored...
Date: Fri, 20 Jun 2003 17:46:20 +0200
From: Paolo ADRAGNA <paolo.adragna@pi.infn.it>
To: "Dr. John Krane" <jkrane@netzero.com>
Dr. Krane,
Try to put ClassDef at thet end of declaration public part:
class ObjDate : public TObject {
public:
ObjDate();
....
ClassDef(ObjDate,1)
Regards,
Paolo Adragna
On Friday 20 June 2003 16:06, 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