# Unresolved while linking

**URL:** <https://root-forum.cern.ch/t/unresolved-while-linking/28481>\
**Category:** ROOT\
**Created:** [March 27, 2018, 11:10pm UTC](https://root-forum.cern.ch/t/unresolved-while-linking/28481 "2018-03-27T23:10:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![djarosla](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/c2a13f/32.png) [@djarosla](https://root-forum.cern.ch/u/djarosla)\
**Post date:** [March 27, 2018, 11:10pm UTC](https://root-forum.cern.ch/t/unresolved-while-linking/28481/1 "2018-03-27T23:10:15Z")

</div>

Hello,

I am trying to execute the following macro:

#include “testprog.h”  
void onefile(char \*s)  
{  
gROOT-\>LoadMacro(“testprog\_C.so”);  
testprog tt(s);  
tt.Loop();  
}

However, I am getting the error:

IncrementalExecutor::executeFunction: symbol ‘\_ZN8testprog4LoopEv’ unresolved while linking [cling interface function]!  
You are probably missing the definition of testprog::Loop()  
Maybe you need to load the corresponding shared library?  
IncrementalExecutor::executeFunction: symbol ‘\_ZN8testprogC1EPKcP5TTree’ unresolved while linking [cling interface function]!  
You are probably missing the definition of testprog::testprog(char const\*, TTree\*)  
Maybe you need to load the corresponding shared library?  
IncrementalExecutor::executeFunction: symbol ‘\_ZN8testprogD1Ev’ unresolved while linking [cling interface function]!  
You are probably missing the definition of testprog::~testprog()  
Maybe you need to load the corresponding shared library?

Has anyone seen this before? Am I missing something?

Thank you for your time and generosity.

---

<div class="post-metadata">

**Author:** ![berserker](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/berserker/32/17693_2.png) [@berserker](https://root-forum.cern.ch/u/berserker)\
**Post date:** [March 28, 2018, 3:56am UTC](https://root-forum.cern.ch/t/unresolved-while-linking/28481/2 "2018-03-28T03:56:06Z")

</div>

See answers in [Load a standalone sharedlibrary](https://root-forum.cern.ch/t/load-a-standalone-sharedlibrary/28306?u=berserker)

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [April 11, 2018, 3:56am UTC](https://root-forum.cern.ch/t/unresolved-while-linking/28481/3 "2018-04-11T03:56:10Z")

</div>

Closed on April 11, 2018, 3:56am UTC

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