I have a strange problem when I load two shared libraries - it seems as if when I load the second library, that root somehow doesn’t know (even though no errors are given): compare these two root sessions:
[coganp@pcp177897pcs example]$ root
root [0] gSystem->Load(“class2/libCLASS2shared.so”);
root [1] gSystem->Load(“class1/libCLASS1shared.so”);
root [2] class1 b
Error: Symbol class1b is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***
root [3] .q
The libraries libCLASS2shared.so and libCLASS1shared.so are libraries with just a single empty placeholder class (Class1 and Class2) - I can provide the compilable example easily enough
I’ve attached a tgz which opens to a directory peterc
You should be able to run make from within. This goes into the two subdirectories class1 and class2 and compiles a shared library from a very simple essentially empty class.
When you open root from the peterc directory, you should be able to reproduce what I see.
I was able to reproduce what you did - but I am still stuck. The makefile I sent was a big mess. I was able to trim down the commands that are used to compile to the barest minimum and I still get the same issue. Maybe something is wrong here: