Hi!
I have the following mockup directory structure (please find it attached in the tar ball):
quux/qux/qux.h
bar/foo.h
I want to load the macro bar/foo.h:
[code]{
gInterpreter->AddIncludePath("-Iquux");
gROOT->LoadMacro("bar/foo.h");
}[/code]
but it fails with:
ROOT 5.99/03 (heads/master@v5-99-03-02-180-gbd383f1, Nov 25 2013, 12:57:57 on linuxx8664gcc)
$ root -l -n include_test.C
root [0]
Processing include_test.C...
In file included from -:1:
In file included from input_line_17:1:
/afsuser/sschmitt/ROOT6/test/./bar/foo.h:1:10: fatal error: 'qux/qux.h' file not found
#include "qux/qux.h"
In CINT I would have done “.include” or “ProcessLine(”.include …") but it doesn’t seem to be available in cling.
How do I add include directories with cling?
Thanks in advance,
Sebastian
include_test.tar.gz (330 Bytes)