Hi Stephan,
Stephan Zimmer wrote:
> Hi ROOTers,
>
> ---8<---snipped---8<---
> As long as I use the gSystem->Load-Statement and just interpret my code,
> everything is fine, but as soon as I use this way to run the analysis.C
> in a compiled version, CINT/ROOT complains that the ExRootTreeReader is
> not defined in the current scope (ExRootTreeReader) is a class inside
> the library I load with the load-statement. More generally it is about
> loading shared libraries into compiled code but specifically I want to
> use the ExRootAnalysis package provided by MadEvent.
> Thank you *very* much for your helpful support!
I have used ExRootanalysis in the past, and I _always_ compiled my code. This is what I had to do.
In my rootlogon.C I had this,
> gSystem->SetIncludePath(" -IExRootAnalysis/");
> gSystem->Load("$ROOTSYS/ExRootAnalysis/lib/libExRootAnalysis.so");
And in my ROOT setup function, I had included that directory like this,
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib$ROOTSYS/ExRootAnalysis/lib
The rest was same as your code. Hope this helps. :)
> Cheers,
> Stephan
>
-- Suvayu Open source is the future. It sets us free.Received on Thu Oct 29 2009 - 20:11:56 CET
This archive was generated by hypermail 2.2.0 : Thu Oct 29 2009 - 23:50:02 CET