RE: [ROOT] Event : public TObject

From: Philippe Canal (pcanal@fnal.gov)
Date: Tue Sep 24 2002 - 15:58:51 MEST


Hi Mariusz,

Your forgot to generate and link to the dictionary file.  You need to run
rootcint on your class.
See $ROOTSYS/test/EventLinkdef.h and the Makefile.  See the chapter on
adding your own class in the ROOT User's guide.

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Mariusz Sapinski
Sent: Tuesday, September 24, 2002 2:12 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] Event : public TObject



 Hello,
 i am quite new in root. I need to create a class Event which will be
stored in Tree. I tried to follow the example from page 253 of root
manual. I simplified the example but i do not understand the info i get
from the compiler. It says to me:

g++ -O analyse.o IOfile.o Event.o
-L/home/masse/soft/root/v3r02p7.rh6.1/lib -lCore -lCint -lHist -lGraf
-lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lm -ldl
-lpthread -rdynamic  -o analyse
Event.o: In function `Event::Dictionary(void)':
Event.o(.text+0x28): undefined reference to `Event::Class_Name(void)'
Event.o: In function `operator>>(TBuffer &, Event const *&)':
Event.o(.text+0x5b): undefined reference to `operator>>(TBuffer &, Event
*&)'
Event.o: In function `Event::StreamerNVirtual(TBuffer &)':
Event.o(.text+0x2af): undefined reference to `Event::Streamer(TBuffer &)'
Event.o(.data+0xe0): undefined reference to
`Event::ShowMembers(TMemberInspector &, char *)'
Event.o(.data+0xe4): undefined reference to `Event::Streamer(TBuffer &)'
collect2: ld returned 1 exit status
make: *** [analyse] Error 1

 And in the class Event i have no function called Dictionary. This
function does not exist in TObject either. 'Rooters', give me some hint!

 Regards,

          Mariusz Sapinski



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:11 MET