I have a pre-compiled lib, i.e. libproduction.so, together with the dictionary file in the same director, i.e. libproduction_rdict.pcm. The following macro runs find from ROOT prompt:
//test.C
R__LOAD_LIBRARY(…/lib/libproduction.so)
void test()
{
production pd;
}
When using the following python code to run it, it produce errors:
//test.py
import ROOT
from ROOT import gROOT, gSystem
gROOT.LoadMacro(“test.C”)
//The error message is:
cling::DynamicLibraryManager::loadLibrary(): libCore.so.6.16: cannot open shared object file: No such file or directory
In file included from input_line_22:1:
test.C:7:3: error: unknown type name ‘production’
production pd;
Any hints are appreciated
//===========================
ROOT Version: 6.18
Platform: ubuntu
Compiler: g++ 7.4