# Using own header files in ROOT

**URL:** <https://root-forum.cern.ch/t/using-own-header-files-in-root/34757>\
**Category:** Newbie\
**Created:** [June 21, 2019, 7:35pm UTC](https://root-forum.cern.ch/t/using-own-header-files-in-root/34757 "2019-06-21T19:35:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LKaufmann](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/258eb7/32.png) [@LKaufmann](https://root-forum.cern.ch/u/LKaufmann)\
**Post date:** [June 21, 2019, 7:35pm UTC](https://root-forum.cern.ch/t/using-own-header-files-in-root/34757/1 "2019-06-21T19:35:53Z")

</div>

Hello!

I’m still very new to ROOT, so I am very sorry for these kind of questions!  
But now here’s my problem:

I want to include an own written header file into a code that I want to open with  
ROOT.  
But everytime I want to start I get the error  
“IncrementalExecutor::executeFunction: symbol ‘\_ZN14testC1Ev’ unresolved while linking [cling interface function]!  
You are probably missing the definition of test::test()  
Maybe you need to load the corresponding shared library?”

It seems I am missing something, but I dont know what.  
Help is very much appreciated!

Thank you!

---

<div class="post-metadata">

**Author:** ![Dilicus](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dilicus/32/14338_2.png) [@Dilicus](https://root-forum.cern.ch/u/Dilicus)\
**Post date:** [June 23, 2019, 9:11pm UTC](https://root-forum.cern.ch/t/using-own-header-files-in-root/34757/2 "2019-06-23T21:11:01Z")

</div>

Hi,  
can you provide a reproducer?  
Just to understand how you include your own header.  
For me a simple

```auto
#include "my_header.h"

```

in the file I want to run is sufficient.

Instead if you want to create a shared library it’s another story.

Cheers  
Stefano

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [June 24, 2019, 6:14am UTC](https://root-forum.cern.ch/t/using-own-header-files-in-root/34757/3 "2019-06-24T06:14:13Z")

</div>

A couple of extra questions for us to understand what you’re trying to do:

- does your header have a function called `test()`?
- where is its function body?
- what exactly are you running that produces the error - do you do `root [0] #include "my_header.h"`?

Axel.
