How can it be that I experience this error in CLING:
IncrementalExecutor::executeFunction: symbol '_ZN5TMath3ExpEd' unresolved while linking [cling interface function]!
You are probably missing the definition of TMath::Exp(double)
Maybe you need to load the corresponding shared library?
It happens when I have successfully finished debugging a ROOT script and is resolved by restarting ROOT.
void clingproblem()
{
double a(1);
int b[12];
a = b;
printf("successful %f\n", TMath::Exp(a));
}
Then
v@v-VirtualBox:~/rootscripts$ root -l
root [0] .x clingproblem.cc
In file included from input_line_10:1:
/home/v/rootscripts/clingproblem.cc:5:7: error: assigning to 'double' from incompatible type 'int [12]'
a = b;
^
Comment out the line a=b
and save.
Then
root [1] .x clingproblem.cc
IncrementalExecutor::executeFunction: symbol '_ZN5TMath3ExpEd' unresolved while linking [cling interface function]!
You are probably missing the definition of TMath::Exp(double)
Maybe you need to load the corresponding shared library?
root [2] .q
v@v-VirtualBox:~/rootscripts$ root -l
root [0] .x clingproblem.cc
successful 2.718282
root [1]