Root error unresolved while linking


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.18/04
Platform: ubuntu 18.04
Compiler: gcc version 7.5.0


Hello,

I am trying to use root for Delphes to run a code that contains some external codes within fastjet for top tagging. I attach the macro (toptagging.C) herewith.

An example code example.cc runs fine within fastjet, however using the similar code in Delphes gives the following error:

IncrementalExecutor::executeFunction: symbol '_ZN12HEPTopTagger12HEPTopTagger3runEv' unresolved while linking [cling interface function]!
You are probably missing the definition of HEPTopTagger::HEPTopTagger::run()
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol '_ZN12HEPTopTagger12HEPTopTaggerD1Ev' unresolved while linking [cling interface function]!
You are probably missing the definition of HEPTopTagger::HEPTopTagger::~HEPTopTagger()
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol '_ZN12HEPTopTagger20HEPTopTagger_fixed_R5f_recEv' unresolved while linking [cling interface function]!
You are probably missing the definition of HEPTopTagger::HEPTopTagger_fixed_R::f_rec()
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol '_ZN12HEPTopTagger12HEPTopTaggerC1ERKN7fastjet9PseudoJetE' unresolved while linking [cling interface function]!
You are probably missing the definition of HEPTopTagger::HEPTopTagger::HEPTopTagger(fastjet::PseudoJet const&)
Maybe you need to load the corresponding shared library?
[toptagging.C|attachment](upload://ymlfKrUHftmpCoLEsLEURhF2ttz.C) (26.1 KB)
[example.cc|attachment](upload://y6A6ETvqR4dubIof8o02k91jYZ.cc) (2.3 KB)

Could you please help resolve this error? Any help in this matter will be greatly appreciated.

Thanks and regards,
Antara

It seems you are missing HEPTopTagger::HEPTopTagger::run() .
Did you load the library containing this symbol?

Thanks for the prompt response.
The authors of HEPtoptagger source code have provided these two files that I have put in the same directory containing the macro toptagging.C . These files contain this symbol. I hope that is the correct method. Could you check these and tell if it is sufficient and correct to put in the same directory as the macro?

Thanks and regards,
Antara

HEPTopTagger.cc (26.1 KB)
HEPTopTagger.hh (12.4 KB)

Try to do:

root[0] .L HEPTopTagger.cc

before executing your script.

Thanks for the reply.

I could load the macro by the command you told. But after that when I try to execute it, it failed giving error.

root [0] .L examples/HEPTopTagger.cc
root [1] .L examples/HEPTopTagger.cc+
Info in : script has already been loaded in interpreted mode
Info in : unloading /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger.cc and compiling it
Info in TUnixSystem::ACLiC: creating shared library /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc.so
cling::DynamicLibraryManager::loadLibrary(): /home/dell/HEPTopTagger2/delphes-master/examples/HEPTopTagger_cc.so: undefined symbol: _ZTVN7fastjet7contrib23NormalizedCutoffMeasureE
/usr/lib/gcc/x86_64-linux-gnu/7/…/…/…/x86_64-linux-gnu/Scrt1.o: In function _start': (.text+0x20): undefined reference to main’
/home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function HEPTopTagger::HEPTopTagger_fixed_R::djademod(fastjet::PseudoJet const&, fastjet::PseudoJet const&, fastjet::PseudoJet const&)': HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x300): undefined reference to fastjet::PseudoJet::delta_phi_to(fastjet::PseudoJet const&) const’
/home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function HEPTopTagger::HEPTopTagger_fixed_R::f_rec()': HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x442): undefined reference to fastjet::operator+(fastjet::PseudoJet const&, fastjet::PseudoJet const&)’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x4b2): undefined reference to fastjet::operator+(fastjet::PseudoJet const&, fastjet::PseudoJet const&)' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x522): undefined reference to fastjet::operator+(fastjet::PseudoJet const&, fastjet::PseudoJet const&)’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x5b2): undefined reference to fastjet::operator+(fastjet::PseudoJet const&, fastjet::PseudoJet const&)' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x5cb): undefined reference to fastjet::operator+(fastjet::PseudoJet const&, fastjet::PseudoJet const&)’
/home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function HEPTopTagger::HEPTopTagger_fixed_R::FindHardSubst(fastjet::PseudoJet const&, std::vector<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet> >&)': HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x7bb): undefined reference to fastjet::PseudoJet::PseudoJet(double, double, double, double)’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x7d7): undefined reference to fastjet::PseudoJet::PseudoJet(double, double, double, double)' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x80e): undefined reference to fastjet::PseudoJet::validated_cs() const’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x82b): undefined reference to fastjet::ClusterSequence::has_parents(fastjet::PseudoJet const&, fastjet::PseudoJet&, fastjet::PseudoJet&) const' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function HEPTopTagger::HEPTopTagger_fixed_R::store_topsubjets(std::vector<fastjet::PseudoJet, std::allocatorfastjet::PseudoJet > const&)‘:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0xa27): undefined reference to fastjet::operator+(fastjet::PseudoJet const&, fastjet::PseudoJet const&)' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0xa8b): undefined reference to fastjet::operator+(fastjet::PseudoJet const&, fastjet::PseudoJet const&)’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0xaef): undefined reference to fastjet::operator+(fastjet::PseudoJet const&, fastjet::PseudoJet const&)' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0xdf1): undefined reference to fastjet::operator+(fastjet::PseudoJet const&, fastjet::PseudoJet const&)’
/home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function HEPTopTagger::HEPTopTagger_fixed_R::check_mass_criteria(std::vector<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet> > const&) const': HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0xec8): undefined reference to fastjet::operator+(fastjet::PseudoJet const&, fastjet::PseudoJet const&)’
/home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o:HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0xf2c): more undefined references to fastjet::operator+(fastjet::PseudoJet const&, fastjet::PseudoJet const&)' follow /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function HEPTopTagger::HEPTopTagger_fixed_R::nsub(fastjet::PseudoJet, int, fastjet::contrib::Njettiness::AxesMode, double, double)‘:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x14c2): undefined reference to fastjet::contrib::Nsubjettiness::result(fastjet::PseudoJet const&) const' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function HEPTopTagger::HEPTopTagger_fixed_R::run()’:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x2170): undefined reference to QjetsPlugin::QjetsPlugin(double, double, double, double, double, double)' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x2212): undefined reference to fastjet::PseudoJet::associated_cluster_sequence() const’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x2232): undefined reference to fastjet::ClusterSequence::constituents(fastjet::PseudoJet const&) const' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x22bc): undefined reference to fastjet::ClusterSequence::inclusive_jets(double) const’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x22d5): undefined reference to fastjet::sorted_by_pt(std::vector<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet> > const&)' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x232b): undefined reference to fastjet::ClusterSequence::delete_self_when_unused()’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x25a1): undefined reference to fastjet::sorted_by_pt(std::vector<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet> > const&)' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x25f0): undefined reference to fastjet::sorted_by_pt(std::vector<fastjet::PseudoJet, std::allocatorfastjet::PseudoJet > const&)’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x279a): undefined reference to fastjet::join(fastjet::PseudoJet const&, fastjet::PseudoJet const&, fastjet::PseudoJet const&)' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x2993): undefined reference to fastjet::SelectorPtMin(double)’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x29b1): undefined reference to fastjet::SelectorNHardest(unsigned int)' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x29d1): undefined reference to fastjet::operator*(fastjet::Selector const&, fastjet::Selector const&)’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x2af5): undefined reference to fastjet::PseudoJet::pieces() const' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x2b7d): undefined reference to fastjet::PseudoJet::pieces() const’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x2beb): undefined reference to fastjet::ClusterSequence::exclusive_jets(int) const' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x2c04): undefined reference to fastjet::sorted_by_pt(std::vector<fastjet::PseudoJet, std::allocatorfastjet::PseudoJet > const&)’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x2c22): undefined reference to fastjet::ClusterSequence::delete_self_when_unused()' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x2fe6): undefined reference to fastjet::PseudoJet::constituents() const’
/home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function HEPTopTagger::HEPTopTagger::UnclusterFatjets(std::vector<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet> > const&, std::vector<fastjet::PseudoJet, std::allocator<fastjet::PseudoJet> >&, fastjet::ClusterSequence const&, double)': HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x4008): undefined reference to fastjet::PseudoJet::PseudoJet(double, double, double, double)’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x4024): undefined reference to fastjet::PseudoJet::PseudoJet(double, double, double, double)' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x4045): undefined reference to fastjet::ClusterSequence::has_parents(fastjet::PseudoJet const&, fastjet::PseudoJet&, fastjet::PseudoJet&) const’
/home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function HEPTopTagger::HEPTopTagger::run()': HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x5045): undefined reference to QjetsPlugin::QjetsPlugin(double, double, double, double, double, double)’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x561a): undefined reference to fastjet::PseudoJet::associated_cluster_sequence() const' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x563a): undefined reference to fastjet::ClusterSequence::constituents(fastjet::PseudoJet const&) const’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x56c4): undefined reference to fastjet::ClusterSequence::inclusive_jets(double) const' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x56dd): undefined reference to fastjet::sorted_by_pt(std::vector<fastjet::PseudoJet, std::allocatorfastjet::PseudoJet > const&)’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x5733): undefined reference to fastjet::ClusterSequence::delete_self_when_unused()' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x6070): undefined reference to fastjet::SelectorNHardest(unsigned int)’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x6148): undefined reference to fastjet::SelectorNHardest(unsigned int)' HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x61b8): undefined reference to fastjet::SelectorNHardest(unsigned int)’
/home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function HEPTopTagger::HEPTopTagger::nsub_unfiltered(int, fastjet::contrib::Njettiness::AxesMode, double, double)': HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x66e6): undefined reference to fastjet::contrib::Nsubjettiness::result(fastjet::PseudoJet const&) const’
/home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function HEPTopTagger::HEPTopTagger::nsub_filtered(int, fastjet::contrib::Njettiness::AxesMode, double, double)': HEPTopTagger_cc_ACLiC_dict.cxx:(.text+0x67f0): undefined reference to fastjet::contrib::Nsubjettiness::result(fastjet::PseudoJet const&) const’
/home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::PseudoJetStructureBase::PseudoJetStructureBase()': HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet22PseudoJetStructureBaseC2Ev[_ZN7fastjet22PseudoJetStructureBaseC5Ev]+0xb): undefined reference to vtable for fastjet::PseudoJetStructureBase’
/home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::PseudoJet::PseudoJet()': HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet9PseudoJetC2Ev[_ZN7fastjet9PseudoJetC5Ev]+0x10): undefined reference to vtable for fastjet::PseudoJet’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet9PseudoJetC2Ev[_ZN7fastjet9PseudoJetC5Ev]+0x77): undefined reference to fastjet::PseudoJet::_finish_init()' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::PseudoJet::~PseudoJet()‘:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet9PseudoJetD2Ev[_ZN7fastjet9PseudoJetD5Ev]+0xf): undefined reference to vtable for fastjet::PseudoJet' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::PseudoJet::eta() const’:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZNK7fastjet9PseudoJet3etaEv[_ZNK7fastjet9PseudoJet3etaEv]+0x14): undefined reference to fastjet::PseudoJet::pseudorapidity() const' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::PseudoJet::squared_distance(fastjet::PseudoJet const&) const’:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text.ZNK7fastjet9PseudoJet16squared_distanceERKS0[ZNK7fastjet9PseudoJet16squared_distanceERKS0]+0x1f): undefined reference to fastjet::PseudoJet::plain_distance(fastjet::PseudoJet const&) const' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::PseudoJet::validated_cluster_sequence() const’:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZNK7fastjet9PseudoJet26validated_cluster_sequenceEv[_ZNK7fastjet9PseudoJet26validated_cluster_sequenceEv]+0x14): undefined reference to fastjet::PseudoJet::validated_cs() const' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::PseudoJet::_ensure_valid_rap_phi() const’:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZNK7fastjet9PseudoJet21_ensure_valid_rap_phiEv[_ZNK7fastjet9PseudoJet21_ensure_valid_rap_phiEv]+0x33): undefined reference to fastjet::PseudoJet::_set_rap_phi() const' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::PseudoJet::reset(double, double, double, double)‘:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet9PseudoJet5resetEdddd[_ZN7fastjet9PseudoJet5resetEdddd]+0x60): undefined reference to fastjet::PseudoJet::_finish_init()' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::JetDefinition::JetDefinition(fastjet::JetAlgorithm, double, fastjet::RecombinationScheme, fastjet::Strategy)’:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet13JetDefinitionC2ENS_12JetAlgorithmEdNS_19RecombinationSchemeENS_8StrategyE[_ZN7fastjet13JetDefinitionC5ENS_12JetAlgorithmEdNS_19RecombinationSchemeENS_8StrategyE]+0x98): undefined reference to fastjet::JetDefinition::JetDefinition(fastjet::JetAlgorithm, double, fastjet::RecombinationScheme, fastjet::Strategy, int)' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::JetDefinition::JetDefinition(fastjet::JetDefinition::Plugin const*)‘:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet13JetDefinitionC2EPKNS0_6PluginE[_ZN7fastjet13JetDefinitionC5EPKNS0_6PluginE]+0xad): undefined reference to fastjet::JetDefinition::set_recombination_scheme(fastjet::RecombinationScheme)' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::JetDefinition::DefaultRecombiner::DefaultRecombiner(fastjet::RecombinationScheme)’:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet13JetDefinition17DefaultRecombinerC2ENS_19RecombinationSchemeE[_ZN7fastjet13JetDefinition17DefaultRecombinerC5ENS_19RecombinationSchemeE]+0x1e): undefined reference to vtable for fastjet::JetDefinition::DefaultRecombiner' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::JetDefinition::Plugin::~Plugin()‘:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet13JetDefinition6PluginD2Ev[_ZN7fastjet13JetDefinition6PluginD5Ev]+0xb): undefined reference to vtable for fastjet::JetDefinition::Plugin' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::Selector::InvalidWorker::InvalidWorker()’:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet8Selector13InvalidWorkerC2Ev[_ZN7fastjet8Selector13InvalidWorkerC5Ev]+0x4e): undefined reference to fastjet::Error::Error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::ClusterSequenceStructure::ClusterSequenceStructure(fastjet::ClusterSequence const*)‘:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet24ClusterSequenceStructureC2EPKNS_15ClusterSequenceE[_ZN7fastjet24ClusterSequenceStructureC5EPKNS_15ClusterSequenceE]+0x1f): undefined reference to vtable for fastjet::ClusterSequenceStructure' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::PseudoJet::PseudoJet(fastjet::PseudoJet const&)’:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text.ZN7fastjet9PseudoJetC2ERKS0[ZN7fastjet9PseudoJetC5ERKS0]+0x14): undefined reference to vtable for fastjet::PseudoJet' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::JetDefinition::DefaultRecombiner::DefaultRecombiner(fastjet::JetDefinition::DefaultRecombiner const&)‘:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text.ZN7fastjet13JetDefinition17DefaultRecombinerC2ERKS1[ZN7fastjet13JetDefinition17DefaultRecombinerC5ERKS1]+0x26): undefined reference to vtable for fastjet::JetDefinition::DefaultRecombiner' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::Pruner::Pruner(fastjet::JetDefinition const&, double, double)’:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet6PrunerC2ERKNS_13JetDefinitionEdd[_ZN7fastjet6PrunerC5ERKNS_13JetDefinitionEdd]+0x2a): undefined reference to vtable for fastjet::Pruner' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::Filter::Filter(fastjet::JetDefinition, fastjet::Selector, double)‘:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet6FilterC2ENS_13JetDefinitionENS_8SelectorEd[_ZN7fastjet6FilterC5ENS_13JetDefinitionENS_8SelectorEd]+0x29): undefined reference to vtable for fastjet::Filter' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::Filter::Filter(double, fastjet::Selector, double)’:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet6FilterC2EdNS_8SelectorEd[_ZN7fastjet6FilterC5EdNS_8SelectorEd]+0x3b): undefined reference to vtable for fastjet::Filter' HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet6FilterC2EdNS_8SelectorEd[_ZN7fastjet6FilterC5EdNS_8SelectorEd]+0x116): undefined reference to fastjet::Error::Error(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’
/home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::Filter::~Filter()': HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet6FilterD2Ev[_ZN7fastjet6FilterD5Ev]+0xf): undefined reference to vtable for fastjet::Filter’
/home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::contrib::NormalizedCutoffMeasure::NormalizedCutoffMeasure(double, double, double)': HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet7contrib23NormalizedCutoffMeasureC2Eddd[_ZN7fastjet7contrib23NormalizedCutoffMeasureC5Eddd]+0x2a): undefined reference to vtable for fastjet::contrib::NormalizedCutoffMeasure’
/home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::contrib::Nsubjettiness::Nsubjettiness(int, fastjet::contrib::Njettiness::AxesMode, double, double, double)': HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet7contrib13NsubjettinessC2EiNS0_10Njettiness8AxesModeEddd[_ZN7fastjet7contrib13NsubjettinessC5EiNS0_10Njettiness8AxesModeEddd]+0x40): undefined reference to vtable for fastjet::contrib::Nsubjettiness’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet7contrib13NsubjettinessC2EiNS0_10Njettiness8AxesModeEddd[_ZN7fastjet7contrib13NsubjettinessC5EiNS0_10Njettiness8AxesModeEddd]+0x8b): undefined reference to fastjet::contrib::Njettiness::Njettiness(fastjet::contrib::Njettiness::AxesMode, fastjet::contrib::MeasureDefinition const&)' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::ClusterSequence::ClusterSequencefastjet::PseudoJet(std::vector<fastjet::PseudoJet, std::allocatorfastjet::PseudoJet > const&, fastjet::JetDefinition const&, bool const&)‘:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet15ClusterSequenceC2INS_9PseudoJetEEERKSt6vectorIT_SaIS4_EERKNS_13JetDefinitionERKb[_ZN7fastjet15ClusterSequenceC5INS_9PseudoJetEEERKSt6vectorIT_SaIS4_EERKNS_13JetDefinitionERKb]+0x1e): undefined reference to vtable for fastjet::ClusterSequence' HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet15ClusterSequenceC2INS_9PseudoJetEEERKSt6vectorIT_SaIS4_EERKNS_13JetDefinitionERKb[_ZN7fastjet15ClusterSequenceC5INS_9PseudoJetEEERKSt6vectorIT_SaIS4_EERKNS_13JetDefinitionERKb]+0xe2): undefined reference to fastjet::ClusterSequence::_decant_options_partial()’
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet15ClusterSequenceC2INS_9PseudoJetEEERKSt6vectorIT_SaIS4_EERKNS_13JetDefinitionERKb[_ZN7fastjet15ClusterSequenceC5INS_9PseudoJetEEERKSt6vectorIT_SaIS4_EERKNS_13JetDefinitionERKb]+0xee): undefined reference to fastjet::ClusterSequence::_initialise_and_run_no_decant()' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::JetDefinition::DefaultRecombiner::~DefaultRecombiner()‘:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet13JetDefinition17DefaultRecombinerD2Ev[_ZN7fastjet13JetDefinition17DefaultRecombinerD5Ev]+0xf): undefined reference to vtable for fastjet::JetDefinition::DefaultRecombiner' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::contrib::NormalizedCutoffMeasure::~NormalizedCutoffMeasure()’:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet7contrib23NormalizedCutoffMeasureD2Ev[_ZN7fastjet7contrib23NormalizedCutoffMeasureD5Ev]+0xf): undefined reference to vtable for fastjet::contrib::NormalizedCutoffMeasure' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::contrib::Nsubjettiness::~Nsubjettiness()‘:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet7contrib13NsubjettinessD2Ev[_ZN7fastjet7contrib13NsubjettinessD5Ev]+0xf): undefined reference to vtable for fastjet::contrib::Nsubjettiness' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function QjetsPlugin::~QjetsPlugin()’:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN11QjetsPluginD2Ev[_ZN11QjetsPluginD5Ev]+0xf): undefined reference to vtable for QjetsPlugin' /home/dell/HEPTopTagger2/delphes-master/./examples/HEPTopTagger_cc_ACLiC_dict.o: In function fastjet::Pruner::~Pruner()‘:
HEPTopTagger_cc_ACLiC_dict.cxx:(.text._ZN7fastjet6PrunerD2Ev[_ZN7fastjet6PrunerD5Ev]+0xf): undefined reference to `vtable for fastjet::Pruner’
collect2: error: ld returned 1 exit status

Could you tell what is the matter here?

Thanks and regards,
Antara

Can you ask the authors of HEPtoptagger source code how you are supposed to use it ?

Okay I shall ask them.
However, I was also trying to compile the toptagging.C macro.
root [7] .L examples/toptagging.C
root [8] .x examples/toptagging.C(“/media/dell/TishBackup2/my_final_events/qq2zh_sm_nsubj.root”)
IncrementalExecutor::executeFunction: symbol ‘_ZN12HEPTopTagger12HEPTopTagger3runEv’ unresolved while linking [cling interface function]!
You are probably missing the definition of HEPTopTagger::HEPTopTagger::run()
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘_ZN12HEPTopTagger12HEPTopTaggerC1ERKN7fastjet9PseudoJetE’ unresolved while linking [cling interface function]!
You are probably missing the definition of HEPTopTagger::HEPTopTagger::HEPTopTagger(fastjet::PseudoJet const&)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘_ZN12HEPTopTagger12HEPTopTaggerD1Ev’ unresolved while linking [cling interface function]!
You are probably missing the definition of HEPTopTagger::HEPTopTagger::~HEPTopTagger()
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol ‘_ZN12HEPTopTagger20HEPTopTagger_fixed_R5f_recEv’ unresolved while linking [cling interface function]!
You are probably missing the definition of HEPTopTagger::HEPTopTagger_fixed_R::f_rec()
Maybe you need to load the corresponding shared library?

Still the same error arises. Could you suggest something more how to solve it?
Any help would be appreciated.

Thanks and regards,
Antara

You need to load HEPtoptagger in some way or another. If you know the developers the best is to ask them. They will give you the right recipe and if it still does not work they may have a bug in their code that they should fix.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.