Problem with include path

i try something like this:

root [0] R__LOAD_LIBRARY(lib/libBar)
root [1] R__ADD_INCLUDE_PATH(include)
root [2] b = new TBar
(TBar *) 0x11b55c0

but with system functions (like in ROOT5):

root [0] gSystem->Load("lib/")
(int) 0
root [1] gSystem->AddIncludePath("-Iinclude")
root [2] b = new TBar
In file included from libBar dictionary payload:7:
/home/musinsky/ROOT6/Bar/TBar.h:5:10: fatal error: 'TFoo.h' file not found

This is BUG or feature in CLING/ROOT6 ?
Exist only this two ways how add include path in CLING/ROOT6 ?

[bash] export ROOT_INCLUDE_PATH=include
[root] R__ADD_INCLUDE_PATH(include)

Thanks, Jan


We inherited the separate treatment of gSystem’s and gInterpreter’s include path from ROOT 5. I would expect that a call to gInterpreter->AddIncludePath(“include”) (NOTE the missing “-I” here - yet another inheritance from ROOT 5…) would help?


And because I always disliked that inconsistency I finally added support to TInterpreter::AddInclude() to take a path prefixed with “-I”. That’s in the current master.

Cheers, Axel.