I am runnning on my computer (MacBook Pro running OSX version 10.8.2). I downloaded the precompiled ROOT Version 5.34/00 and have since checked RootCore out of the svn and through RootCore compiled GoodRunsLists, giving me the header files and libGoodRunsLists.so.
My code looks like:
...
#include <GoodRunsLists/TGoodRunsList.h>
#include <GoodRunsLists/TGoodRunsListReader.h>
...
// Main routine
int doAnalysis(void) {
// GRL setup
Root::TGoodRunsListReader grlR("/Users/ben/Dropbox/CERN/ROOT/Data/GRL.xml");
grlR.Interpret();
Root::TGoodRunsList grl = grlR.GetMergedGoodRunsList();
grl.Summary(kTRUE);
...
// MAIN EVENT LOOP
for (int event=0; event<nEvents; ++event) {
...
// Good Run List selection
if (!grl.HasRunLumiBlock(jpsiReader.runNumber,jpsiReader.lumiBlock)) {
GRLcut++;
continue;
}
...
}
...
}
I compile the code using g++ with the following command from my bash terminal
There are no compiler errors, however when I run the output (…/Mass) I get the following error:
dyld: Symbol not found: _xmlFree
Referenced from: /Users/ben/Dropbox/CERN/ROOT/root/RootCore/lib/libGoodRunsLists.so
Expected in: flat namespace
in /Users/ben/Dropbox/CERN/ROOT/root/RootCore/lib/libGoodRunsLists.so
Trace/BPT trap: 5
Any help with the problem would be greatly appreciated.