Hi Mariusz, See the concrete example in $ROOTSYS/test/Event.h,cxx, MainEvent.cxx You forgot the ClassDef, ClassImp macros You do not indicate which version you are using. Rene Brun On Tue, 24 Sep 2002, Mariusz Sapinski wrote: > > 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