Re: CINT [ROOT] rootcint problem

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Jun 08 2001 - 09:45:28 MEST


Hi Masa,

I investigated a bit more this problem and found the reason.
The G__ClassInfo constructor does not strip blanks in the class name.
As a result, G__ClassInfo::IsValid was returning invalid and rootcint
could not generate the relevant code.

I have now modified rootcint to strip blanks before calling the CINT class.

Rene Brun

Masaharu Goto wrote:
> 
> Hello Rene,
> 
> The problem does not reproduce on my machine. Is that a problem
> of specific CINT revision? Or some other situation?  I need more
> information.
> 
> Thank you
> Masaharu Goto
> 
> >Date: Wed, 06 Jun 2001 14:47:44 +0000
> >From: Rene Brun <Rene.Brun@cern.ch>
> >To: Reiner Rohlfs <Reiner.Rohlfs@obs.unige.ch>
> >Cc: roottalk@pcroot.cern.ch, rootdev@pcroot.cern.ch
> >Subject: Re: CINT [ROOT] rootcint problem
> >
> >Hi Reiner,
> >
> >It took me sometime to discover a nasty feature in CINT.
> >In your LinkDef.h file, you have:
> >
> >#pragma link C++ class    RR-;
> >
> >rootcint is confused by the number of blanks between class and RR-
> >If you just remove one blank, things will be OK.
> >#pragma link C++ class  RR-;
> >
> >I assume that Masa will fix this feature.
> >Thanks for reporting the problem.
> >
> >Rene Brun
> >
> >
> >Reiner Rohlfs wrote:
> >>
> >> Hi ROOTteam
> >>
> >> I use rootcint to generate a dictionary but without the Streamer() method.
> >> It worked fine for version 2.25, but now I'm using version 3.00/06 and
> >> rootcint generates a source code which cannot be compiled. I compile with
> SUN
> >> workshop 6.1
> >>
> >> These are the commands I use with the attached files:
> >>
> >> rootcint -f dictionary.cpp rr.h LinkDef.h
> >> CC -c -g -I/isdc_soft_platform/root/include dictionary.cpp
> >>
> >> and this is the error message:
> >> "dictionary.cpp", line 36: Error: R__RR_name is not defined.
> >>
> >> Do I miss something or is this a bug in rootcint?
> >>
> >> Thanks Reiner.
> >>
> >>
> ------------------------------------------------------------------------------
> -
> -
> >>
> >>                       Name: LinkDef.h
> >>    LinkDef.h          Type: Plain Text (TEXT/plain)
> >>                Description: LinkDef.h
> >>
> >>                  Name: rr.h
> >>    rr.h          Type: Plain Text (TEXT/plain)
> >>           Description: rr.h



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:49 MET