Unresolved while linking

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.

See answers in Load a standalone sharedlibrary

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