# Fatal error: TRandom3.h: No such file or directory #include \<TRandom3.h\>

**URL:** <https://root-forum.cern.ch/t/fatal-error-trandom3-h-no-such-file-or-directory-include-trandom3-h/26128>\
**Category:** ROOT\
**Created:** [September 5, 2017, 9:44pm UTC](https://root-forum.cern.ch/t/fatal-error-trandom3-h-no-such-file-or-directory-include-trandom3-h/26128 "2017-09-05T21:44:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ksmith](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ksmith/32/12567_2.png) [@ksmith](https://root-forum.cern.ch/u/ksmith)\
**Post date:** [September 5, 2017, 9:58pm UTC](https://root-forum.cern.ch/t/fatal-error-trandom3-h-no-such-file-or-directory-include-trandom3-h/26128/2 "2017-09-05T21:58:42Z")

</div>

I assume you are trying to link ROOT libraries into your Geant4 project.

What does your `CMakeLists.txt` look like? Did you appropriately update the search paths for include files?

Have you looked at this [example](https://root.cern.ch/how/integrate-root-my-project-cmake)?

Also just as an FYI here is how to post code snippets, including errors:

> [@Getting the same histograms after cuts](https://root-forum.cern.ch/t/getting-the-same-histograms-after-cuts/24719/2):
>
> Remark on the way to post code snippets: When you post pieces of code on the forum enclose it with ``` . That makes your post much more readable (I systematically edit your posts that way) . So do: ``` // this is a C++ piece of code. ``` And it will display as: // this is a C++ piece of code.

---

_[View the full topic](https://root-forum.cern.ch/t/fatal-error-trandom3-h-no-such-file-or-directory-include-trandom3-h/26128)._
