Re: [ROOT] rootcint options

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu May 29 2003 - 19:37:48 MEST


Hi John,

It looks like you have a mismatch in the number of "{","}".
This should be simple to find.
I cannot tell you more without having your include file.

The option "-P" instructs rootcint to use the C preprocessor
before running rootcint. the CPP may help by unrolling
macros or difficult constructs in messy include files.
You can always run with this option. The only side effect
is that it makes rootcint slower.
To use this option, do:

 rootcint -f Dict.cxx -c -P -I$ROOTSYS/include myclass.h LinkDef.h

Rene Brun

On Thu, 
29 May 
2003, Frankland John wrote:

> Hi all
> 
> Something I have done in one of my header files means that rootcint
> produces the following output, rather than happily "dictionating" away as
> usual (up to around 7 p.m. tonight - before, during and after this time I
> was/am using v3.05/05 on a Linux RH8 machine with gcc3.2)
> ===>
> 
> Error: Too many '}' FILE:tmpfile LINE:275
> Error: Unexpected EOF G__exec_statement() FILE:tmpfile LINE:276
> Advice: You may need to use +P or -p option
> Warning: Error occured during reading source files
> Warning: Error occured during dictionary source generation
> !!!Removing KVMultiDetDict.cpp KVMultiDetDict.h !!!
> Error: rootcint: error loading headers...
> 
> Looking in the last headers I modified I can't see the problem,
> so I followed rootcint's advice and used the +P/-p options.
> First of all, does anybody know what these are ?
> They aren't listed when you type rootcint -h or rootcint -help,
> neither can I find them on the website.
> 
> With option +P I get page after page of errors ("TObject.h: no such file"
> etc. etc. - very reassuring) and finally the creation of a dictionary.
> With option -p I get no errors and a nice dictionary.
> If I take the "p/P" away I still find my previous problem.
> Can somebody tell me what's going on please ?
> And any hints on what stupid error I may have introduced into one of
> my header files ?
> 
> Thanks a lot
> John
> 
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET