Error in loading .so

Hi,

I have a classs defined “Alpgen” (link is given below).

schauhan.web.cern.ch/schauhan/BSM/Combined/

I can compile the code successfully but while loading the .so I see the following error.


Alpgen.C:426: warning: unused variable 'Weight’
root [0]
Processing Analysis.C…
/home/sushil/ROOT_5.16/root_516/bin/root.exe: symbol lookup error: /home/sushil/Wisconsin/Alpgen/Combined/./Alpgen.so: undefined symbol: _ZN4TH1FC1EPKcS1_idd

In Alpgen.C I have kept few lines in between “+++++” lines. If I remove these line then code works fine and i am able to run .so.

But with these lines it gives the error listed above.

I have loaded libTree.so in root session and also have Alpgen.rootmap which load libRIO.so.

Any help is welcomed.

with best,
sushil

Hi,

also load libHist in Analysis.C. “c++filt _ZN4TH1FC1EPKcS1_idd” shows that it’s a missing symbol from TH1 which in turn means the library is needed - but not loaded.

Cheers, Axel.

Hi Axel,

    Thanks for your reply. I loaded liibHist.so. Now I  see another similar type of problem listed below:

=================================================

root [0]
Processing Analysis.C…
dlopen error: /home/sushil/Wisconsin/Alpgen/Combined/./Alpgen.so: undefined symbol: _ZN6Alpgen3thrE
Load Error: Failed to load Dynamic link library /home/sushil/Wisconsin/Alpgen/Combined/./Alpgen.so
(int)(-1)
*** Interpreter error recovered ***

Could you please suggest a solution. All my files are at the link below:

schauhan.web.cern.ch/schauhan/BSM/Combined/

with best,
sushil