RE: Streamer / multiply defined
Valery Fine (fine@bnl.gov)
Thu, 18 Mar 1999 16:54:08 -0500
>
> 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?
You didn't find and read "Using ROOTCINT"
http://root.cern.ch/root/RootCintMan.html
yet.
This page says:
" ...
This file tells rootcint for which classes the method interface
stubs should be generated. [ . . . ] When this file is not specified a
default
version exporting the classes with the names equal to the include files
minus
the .h is generated.
... "
Hope this helps.
Valery