Loading a pre-compiled lib in PyROOT

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:

void test()
production pd;

When using the following python code to run it, it produce errors:

import ROOT
from ROOT import gROOT, gSystem

//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

It turns out I was loading in root6.18 a lib that was compiled in root6.16. After recompiling it in root6.18, the problem is gone.

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