Include/ directory in $ROOTSYS

I have include/ directory in $ROOTSYS. Is that directory which I can use by adding

#include some_in_include/

in my code from wherever?

Yes, but that doesn’t mean you should create your own files in there.

Instead, put your files into a separate directory, and tell ROOT e.g. by means of a rootlogon.C file where to find them (i.e. add that as an include path). Like that you can swap ROOT versions; you can version control your files etc.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.