Re: [ROOT] ClassDef statement is ignored...

From: Andreas Mussgiller (a.mussgiller@fz-juelich.de)
Date: Fri Jun 20 2003 - 17:04:08 MEST


Hi John,

try something like this ...

#ifndef ObjDate_H
#define ObjDate_H
#include "TObject.h"

class ObjDate : public TObject {
  public:
    ObjDate();

  ...etc

  ClassDef(ObjDate,1)
};

So long
    Andreas

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

-- 
---------------------------------

Andreas Mussgiller
Institut fuer Kernphysik
Forschungszentrum Juelich
D-52425 Juelich

phone:  +49-2461-61-3154
fax:    +49-2461-61-3930
mail:   a.mussgiller@fz-juelich.de
http://www.fz-juelich.de/ikp/anke/vertex



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET