Root cannot load libraries

Hi. I’m currently running ROOT 6.04.00 on Ubuntu 15.04.

I’m having this issue where after properly loading my libraries and including the appropriate header files, any attempts use anything built into the library will give the following error:

IncrementalExecutor::executeFunction: symbol '_ZN11GenParticle2P4Ev' unresolved while linking function '_GLOBAL__sub_I_cling_module_124'!
You are probably missing the definition of GenParticle::P4()

Trying to run my entire code will result in a segfault:

#5  0x00007f71207785f8 in int TStreamerInfoActions::VectorPtrLooper::ReadBasicType<unsigned int>(TBuffer&, void*, void const*, TStreamerInfoActions::TConfiguration const*) () from /home/wenhan/root6/lib/libRIO.so
#6  0x00007f7120834ab8 in TBufferFile::ApplySequenceVecPtr(TStreamerInfoActions::TActionSequence const&, void*, void*) () from /home/wenhan/root6/lib/libRIO.so
#7  0x00007f71175efdda in TBranchElement::ReadLeavesClonesMember(TBuffer&) () from /home/wenhan/root6/lib/libTree.so
#8  0x00007f711760ae82 in TBranch::GetEntry(long long, int) () from /home/wenhan/root6/lib/libTree.so
#9  0x00007f71175fab60 in TBranchElement::GetEntry(long long, int) () from /home/wenhan/root6/lib/libTree.so
#10 0x00007f71175fab05 in TBranchElement::GetEntry(long long, int) () from /home/wenhan/root6/lib/libTree.so
#11 0x00007f7118993ebf in ExRootTreeReader::ReadEntry(long long) () from /home/wenhan/root6/lib/libExRootAnalysis.so
#12 0x00007f71198300d1 in ?? ()
#13 0x00007f7124aac040 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#14 0x00007ffc453b5a24 in ?? ()
#15 0x00007ffc0000002e in ?? ()
#16 0x0000000000000000 in ?? ()

I don’t think the problem is with my code as it runs just fine on my MacBook but any help regarding this issue will be much appreciated.

Thanks in advance

Hi,

do you have the appropriate rootmapfiles in the LD_LIBRARY_PATH where appropriate means containing an autoload entry for the class “GenParticle”?
In other words, when you created the dictionary for the class GenParticle, did you select it with your selection xml (linkdef) file and did you properly instruct genreflex (rootcling) to create a rootmap for your selection with the option --rootmap (-rmf) ?

Cheers,
Danilo

Thank you for your reply.

I’m not sure if this is the answer you are looking for but I simply copied over the appropriate library and header files from the installation into the root directory and loaded the libraries using the command gSystem->Load([Insert file name]) as I have always done on OSX.