Re: [ROOT] gSystem->Load, gInterpreter->AddIncludePath problems

From: Rene Brun (brun@pcbrun.cern.ch)
Date: Thu Nov 04 2004 - 22:10:12 MET


Jacek,

Could you send the shortest possible script (or set of files)
showing this problem? I cannot reproduce it.

Rene Brun

On Thu, 4 Nov 
2004, Jacek M. Holeczek wrote:

> Hi,
> I've got some problems with ROOT 4.00/08 and 4.01/02 on SLC3 (your binary
> distributions are used).
> 
> My "g.cxx" cint script (used as "root[0] .x g.cxx") contains :
> 	...
> 	gSystem->Load(gSystem->ExpandPathName("${WRK}/lib/${SSM}/XX"));
> 	...
> This line seems to be completely ignored, the library is NOT loaded at
> all (the cint command "root[1] .file" does not show it). Moreover, I can
> change the name of the library in the script to anything like "XX.lulu",
> and root/cint does NOT see that the new file does NOT exist (no warning,
> no error reported).
> If I do it from the root command line, it all works as expected.
> 
> The same script contains also :
> 	...
> 	gInterpreter->AddIncludePath("./include");
> 	gInterpreter->AddIncludePath(gSystem->ExpandPathName("${INC_DIR}"));
> 	gInterpreter->AddIncludePath(gSystem->ExpandPathName("${SSM_INC}"));
> 	...
> and ... the output of the cint command "root[2] .include" is fine, but the
> output of "root[3] gInterpreter->GetIncludePath()" does not show ANY of
> the added paths (just the default "root_include" path).
> Again, if I do it from the root command line, it all works as expected.
> 
> Could you, please, help me,
> Thanks in advance,
> Best regards,
> Jacek.
> 



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET