Re: [ROOT] Script compiler

From: Valeri Fine (Faine) (fine@bnl.gov)
Date: Wed Oct 25 2000 - 22:37:06 MEST


 Hello, Philippe

 > > I had reported this problem to ROOT team earlier.
> > The problem is the include path for RootCint did not contain
> > the "current directory". I hope this was fixed.

> Can you remind me what the problem was?
> Can you send the content of $ROOTSYS/include/compiledata.h
> and the output of the problem with the command gDebug = 5 done
> before you start.
>

 The problem was due the method below did not contain "-I." among others.

 for example for STAR framework it was:

 root.exe [0] gSystem->GetIncludePath()
 (const char*

8533a1c)"-I./include -I./StRoot -I$STAR/include -I$STAR/StRoot -I$STAF/inc -I$CERN_ROOT/include -I$ROOTSYS/src  -I/afs/rhic/sta
 r/ROOT/2.25.02/include"

 by this reason we had problems STAR people complained about.

 As result the dictionary compilation failed since the compiler can not find
 the include file.

 This should be protected. There are two ways to protect things:

   1. Method TSystem::SetIncludePath() should make sure the "-I." is always
      present.

   2. The dictionary generated by the "script compiler facility"
      should use

      #include "./myDictionary.h"
   rather
      #include "myDictionary.h"

   Myself thinks the second approach is better ;-) because both files namely
   the dictionary implementation and the dictionary header files are created
   and deleted by "script compiler" and the last always uses the current
   directory (at least by now).

   Hope this helps,
                    Valer



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:36 MET