Streamer / multiply defined

Anton Fokin (kosu_fokin@garbo.lucas.lu.se)
Thu, 18 Mar 1999 22:38:43 +0100


Hi rooters,

I've created my object derived from TH2 and want to add it into the root
dictionary. It seems I can generate and compile my dictionary file ok but
then I compile my program I get message like that:

TNH2FDict.o compressed: TNH2F::Streamer(TBuffer&): multiply defined

And the message appears because I define my own Streamer method in
TNH2F.h/cxx. (Following instructions on "How to Write Objects to a File")
which conflicts with Streamer method defined by the cint dictionary
generator. I think I don't get something. Could you help?

Best regards,

Dr. Anton Fokin

Division of Cosmic and Subatomic Physics
Lund University
Sweden