# Setting .include path in .rootrc file?

**URL:** <https://root-forum.cern.ch/t/setting-include-path-in-rootrc-file/6245>\
**Category:** ROOT\
**Created:** [March 19, 2008, 8:56pm UTC](https://root-forum.cern.ch/t/setting-include-path-in-rootrc-file/6245 "2008-03-19T20:56:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![slocum](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/e9c0ed/32.png) [@slocum](https://root-forum.cern.ch/u/slocum)\
**Post date:** [March 19, 2008, 8:56pm UTC](https://root-forum.cern.ch/t/setting-include-path-in-rootrc-file/6245/1 "2008-03-19T20:56:36Z")

</div>

Hi,  
I would like to modify the include path in my .rootrc file. It was  
easy to do this for the MacroPath, with:

Unix.\*.Root.MacroPath: .:$(ROOTSYS)/macros:/home/put/macro/path/here

and for the DynamicPath, with:

Unix.\*.Root.DynamicPath: .:$(ROOTSYS)/lib:/home/put/lib/path/here .

However, when I try to set the include path in the .rootrc file, with:

.include /home/put/include/path/here

it does not show up when I check it interactively with “root[] .include”, and  
my code cannot find the included files. Would there be any reason why I can’t  
set the include path in the .rootrc file, when it was so easy for the Macro and Dynamic  
Paths?  
❓

Thanks,  
Penny

---

<div class="post-metadata">

**Author:** ![kind](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/85e7bf/32.png) [@kind](https://root-forum.cern.ch/u/kind)\
**Post date:** [March 20, 2008, 11:28am UTC](https://root-forum.cern.ch/t/setting-include-path-in-rootrc-file/6245/2 "2008-03-20T11:28:58Z")

</div>

Hello Penny,

you can also set the path in your .rootlogon.C file, eg by

```auto
gSystem->SetIncludePath(" -Imyincludepath1 ");
gSystem->SetIncludePath(" -Imyincludepath2 ");
...
```

Cheers,  
Oliver

---

<div class="post-metadata">

**Author:** ![slocum](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/e9c0ed/32.png) [@slocum](https://root-forum.cern.ch/u/slocum)\
**Post date:** [March 20, 2008, 1:00pm UTC](https://root-forum.cern.ch/t/setting-include-path-in-rootrc-file/6245/3 "2008-03-20T13:00:37Z")

</div>

Hi Oliver,  
Thanks for the idea. I guess I will try that, although at the moment I  
don’t have a rootlogon.C file. My preference would be to do everything  
in the .rootrc file. Anyway, thanks for the suggestion.  
Regards,  
Penny
