problem with linking

From: Witold Przygoda (Witold.Przygoda@physik.tu-muenchen.de)
Date: Thu Feb 11 1999 - 22:41:34 MET


Dear ROOTers,

I have problem with linking of my program, which fails like this:

hrichanalysis.o: In function `HRichAnalysis type_info function':
/home/users/wprzy/work/analysis/devel/hrichanalysis.cc:3: undefined
reference to `TNamed type_info function'
/home/users/wprzy/work/analysis/devel/hrichanalysis.cc:3: undefined
reference to `TNamed type_info node'

hrichpad.o: In function `HRichPad type_info function':
/home/users/wprzy/work/analysis/devel/hrichpad.cc:3: undefined reference
to `TObject type_info function'
/home/users/wprzy/work/analysis/devel/hrichpad.cc:3: undefined reference
to `TObject type_info node'

etc.

in case if a class inherits from TNamed or TObject

In line 3 (to which refer lines above) there is 
ClassImp(given_classname)

Yes, I have ClassDef(given_classname,1) in each class, 
also ClassImp(given_classname) in *.cc files,
I have LinkDef.h with my classes and I generate dict-files with rootcint.

Could anyone explain me what these errors mean?

(My environment: RedHat 5.2, egcs-1.1.1, ROOT 2.21/05 binaries) 


Thank you in advance,
Witek

p.s. answering please add Cc: to my address, too :)



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:29 MET