# How do I append to the include path using .rootrc or rootlogon.C?

**URL:** <https://root-forum.cern.ch/t/how-do-i-append-to-the-include-path-using-rootrc-or-rootlogon-c/49506>\
**Category:** Newbie\
**Created:** [April 7, 2022, 7:31am UTC](https://root-forum.cern.ch/t/how-do-i-append-to-the-include-path-using-rootrc-or-rootlogon-c/49506 "2022-04-07T07:31:14Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jaysonl](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jaysonl/32/29368_2.png) [@jaysonl](https://root-forum.cern.ch/u/jaysonl)\
**Post date:** [April 7, 2022, 3:33pm UTC](https://root-forum.cern.ch/t/how-do-i-append-to-the-include-path-using-rootrc-or-rootlogon-c/49506/5 "2022-04-07T15:33:47Z")

</div>

_Ahha!_

Taking that and combing it with advice from [this post](https://root-forum.cern.ch/t/adding-include-paths-to-cint/8281/4), I put this into my `rootlogon.C`:

```auto
{
	gInterpreter->AddIncludePath("/usr/include/glib-2.0");
	gInterpreter->AddIncludePath("/usr/lib/x86_64-linux-gnu/glib-2.0/include");
}

```

And there we go.

Thank you!

---

_[View the full topic](https://root-forum.cern.ch/t/how-do-i-append-to-the-include-path-using-rootrc-or-rootlogon-c/49506)._
