AddIncludePath

Hi,

I have a problem with AddIncludePath:

In my rootlogon.C I have:

gSystem->AddIncludePath(" -I $Home/src ");

But when I check for it in the command line with .include it is not there. When I try to run a macro which needs these headers, it doesn’t work. But when I type directly in the command line

.include $Home/src

it is fine and the macro works as well.

Does anybody understand what’s going on???

Thanks,
Stephan

root.cern.ch/phpBB2/viewtopic.php?t=1674

Jan

I know. I saw this post before, but I don’t want to write .include Path every time in the command line (it works this way).

It doesn’t work in my rootlogon.C file, when I use AddIncludePath.

It has actually no effect.

add this line to rootlogon.C:gROOT->ProcessLine(".include $Home/src");
Jan

Thanks!

There is

for Cint:

gInterpreter->AddIncludePath()

for ACLiC:

gSystem->SetIncludePath()

Eddy