i was wondering how to set the include path in root. i saw this discussion:
which provides a solution. is there a way to do this in the code?
the usecase is this: i have a macro in which i want to include a file called “fitTools.C” which is in a certain path “mypath”.
i would like to do something like:
gSystem->SetIncludePath( " -I/mypath/ " );
but it gives these errors:
error: expected constructor, destructor, or type conversion before ‘->’ token
error: ‘gSystem’ was not declared in this scope
what do i have to do to make this work?