Dear Rooters
Yesterday I downloaded the newest CVS version to solve the initial
problems with ACLiC. Sorrowly, this does not solve my real problems,
namely compiling a macro which loads my own libraries.
Compiling the simple macro “macroExpress.C” results in a lot of
warnings (shown below) but is able to run.
However, a more complex macro, which uses many of my own classes,
does not only display many more warnings but also the following
error message:
dlopen error: dlcompat: dyld: /Users/cs/ROOT/root/bin/root.exe Undefined symbols:
__ZN10XAlgorithm14InitParametersEiPd
_ZN11XHybridizer10InitArraysEiPdS0_S0_PiS0_S0_S0_S1
__ZN11XHybridizer11DeleteArrayEv
_ZN14XProbeSelectorC1EPKcS1
__ZN15XArithmeticMeanC
Load Error: Failed to load Dynamic link library /Users/cs/ROOT/rootcode/xpsx/./macroExpress1_C.so
My questions are:
How can I avoid the many warning messages?
What causes the error message?
Best regards
Christian
//---------begin macroExpress.C-----------
#include “TFile.h”
#include “TTree.h”
#include “TString.h”
#include “TSystem.h”
#ifndef CINT
#include <Riostream.h>
#include “XPSUtils.h”
#include “XPSBase.h”
#endif
void Init()
{
gSystem->Load(“libXPSUtils.so”);
gSystem->Load(“libXPSBase.so”);
}//Init
Int_t Preprocess()
{
TFile *fFile = new TFile(“Test3_cel.root”,“READ”);
fFile->cd();
XContent fData = (XContent)(fFile->Get(“Content”));
cout << “Content <” << fData->GetName() << “>” << endl;
return 0;
}//Preprocess
//---------end macroExpress.C-----------
root [0] .L macroExpress.C+
Info in TUnixSystem::ACLiC: creating shared library /Users/cs/ROOT/rootcode/xpsx/./macroExpress_C.so
In file included from /Users/cs/ROOT/rootcode/xpsx/macroExpress.C:25,
from /Users/cs/ROOT/rootcode/xpsx/tmp_0_NefQtR.h:32,
from /Users/cs/ROOT/rootcode/xpsx/tmp_0_NefQtR.cxx:13:
/Users/cs/ROOT/root/include/TObject.h:114: warning: virtual void TObject::Draw(const Option_t*)' was hidden /Users/cs/ROOT/rootcode/xpsx/XPSUtils.h:178: warning: by
virtual Int_t
XPlot::Draw(const char*, const char*, const char*, const char*, const char*,
const char*, const char*, const Option_t*, double, double, double, double,
double, double, int, bool)’
/Users/cs/ROOT/root/include/TNamed.h:60: warning: virtual void TNamed::SetTitle(const char*)' was hidden /Users/cs/ROOT/rootcode/xpsx/XPSUtils.h:222: warning: by
void
XPlot::SetTitle(const char*, int)‘
In file included from /Users/cs/ROOT/rootcode/xpsx/macroExpress.C:26,
from /Users/cs/ROOT/rootcode/xpsx/tmp_0_NefQtR.h:32,
from /Users/cs/ROOT/rootcode/xpsx/tmp_0_NefQtR.cxx:13:
/Users/cs/ROOT/root/include/TList.h:64: warning: virtual TObject* TList::FindObject(const TObject*) const' was hidden /Users/cs/ROOT/rootcode/xpsx/XPSBase.h:98: warning: by
virtual
TObject* XContent::FindObject(const char*, bool) const’
/Users/cs/ROOT/root/include/TList.h:63: warning: virtual TObject* TList::FindObject(const char*) const' was hidden /Users/cs/ROOT/rootcode/xpsx/XPSBase.h:98: warning: by
virtual
TObject* XContent::FindObject(const char*, bool) const’
/Users/cs/ROOT/root/include/TObject.h:114: warning: virtual void TObject::Draw(const Option_t*)' was hidden /Users/cs/ROOT/rootcode/xpsx/XPSBase.h:402: warning: by
virtual Int_t
XManager::Draw(const char*, const char*, const char*, const char*, const
char*, const char*, const char*, const Option_t*, double, double, double,
double, double, double, int, bool)'
root [1] Init()
root [2] Preprocess()
Content
(Int_t)0
root [3]