RE: Streamer / multiply defined

From: Valery Fine (Faine) (fine@bnl.gov)
Date: Thu Mar 18 1999 - 22:54:08 MET


>
> 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



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