gSystem->AddIncludePath question

Hi,

I’m trying to write a macro with external packages, so I want to include the files and link to that library. I don’t know if that is explained somewhere but I didn’t find it. In any case, I’m copying what I see on the terminal so you see it. It seems ROOT doesn’t find my file to include. If I give the absolute path then it does, but of course it doesn’t find the files included there in.

root [0] gSystem->AddIncludePath("-I/home/jgonzalez/Offline/include");
root [1] #include "utl/TabulatedFunction.h"                           
Error: cannot open file "utl/TabulatedFunction.h"  FILE:(tmpfile) LINE:2
*** Interpreter error recovered ***
root [2] .q

jgonzalez@linux /home/jgonzalez/Offline
> ls /home/jgonzalez/Offline/include/utl/TabulatedFunction.h
/home/jgonzalez/Offline/include/utl/TabulatedFunction.h

Am I doing something wrong? it seems pretty simple, so I don’t know what I’m missing.

Javier

gSystem->AddIncludePath("-I/home/jgonzalez/Offline/include"); is to be used to add include path to the compilation phase of ACLiC.
For the interpreter you should use

Cheers,
Philippe.