?: TDatime use

Dirk Meier (Dirk.Meier@cern.ch)
Thu, 19 Feb 1998 15:24:01 +0100 (MET)


Hi,

I'm trying class TDatime and link it with a root excecutable.
After generating the dictionary I receive the following message:

aCC +p -g -w +Z
-I/afs/cern.ch/na49/library/local/ROOT/hpux10aCC/root/include -c dict.cxx
Error 226: "dict.cxx", line 5332 # No appropriate function found for call
of 'operator <<'. Last viable
candidate was "TBuffer &operator <<(TBuffer &,const TObject *)"

["/afs/cern.ch/na49/library/local/ROOT/hpux10aCC/root/include/TBuffer.h",
line 335]. Argument of type
'TDatime *' could not be converted to 'const TObject *'.
R__b << fDatime;
^^^^^^^^^^^^^^^
Error 164: "dict.cxx", line 5332 # Integral type expected for operator
'<<'; types found were 'TBuffer &' and
'TDatime *'.
R__b << fDatime;
^^^^^^^^^^^^^^^
*** Error exit code 2

I believe this happens because TDatime does not inherit from
class TObject. What do I have to say to compile correctly?

Dirk