RE:root -p [or +P -P +p]

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Mon Mar 15 1999 - 13:14:06 MET


Tony,

As Martin already answered this question, there is not much to add. 
There is one more thing that I need to clarify. CINT displays warning/error
message about using -p or +P. These options are only valid for bare CINT.

Rene, Fons,
Do you have any comments about using preprocessor in ROOT/CINT session?

Masaharu Goto

----------------------------------------------------------------------------
I am trying to load the headers for a shared library but the root
preprocessor can't handle
some of the macros in them.  So I tried using the -p option but get a
similar message
as without:
   Processing FGFDMExec.h...
   Limitation: can not handle macro __STL_CATCH_ALL if(false) Use +P or
-p option
   FILE:/usr/include/g++/stl_config.h LINE:236
   *** Interpreter error recovered ***
   NULL
I have tried this with  .x, and root -p FGFDMExec.h; all give the same
result.
This has lead me to believe that root isn't actually trying to use the
g++ preprocessor
after all.  I believe my $ROOTSYS/cint/MAKEINFO file is set up
correctly, it sets
CPPPREP = g++ -E, and is unchanged from the binary distribution.  I have
also
wondered if this problem is related to ROOT's STL limitations.

This source is an active part of a larger project (see
http://www.flightgear.org ) so changing
it to accomodate ROOT is undesirable, but doable.

I am using root 2.20/06 on RedHat Linux 5.1.

Does anyone know how to get this to work (or a way to figure out why it
doesn't) ?


--
Tony Peden
apeden@nwlink.com
"Core dumping fscks tend to make me nervous" -- Linus Torvalds



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