Score:0

code compilation issues

nf flag

I am working on a project related to jet physics.

For that, I am using a Linux terminal in my Ubuntu 22.04 LTS. I use libraries of Pythia, Fastjet and fastjet-contrib in my code.

When I recently used a library of fastjet-contrib in my code, I faced the error given below during compilation even though the same code got compiled in a different system that has Mac OS.

All the software versions and makefile on both of the systems are the same.

undefined reference to `vtable for fastjet::Recluster'
/usr/bin/ld: /home/oem/test/rivet/local/lib/libRecursiveTools.a(RecursiveSymmetryCutBase.o): in function `fastjet::Recluster::~Recluster()':
RecursiveSymmetryCutBase.cc:(.text._ZN7fastjet9ReclusterD2Ev[_ZN7fastjet9ReclusterD5Ev]+0x13): undefined reference to `vtable for fastjet::Recluster'
collect2: error: ld returned 1 exit status
make: * [makefile:2: tutorial1] Error 1
cn flag
see http://gcc.gnu.org/faq.html#vtables "The solution is to ensure that all virtual methods that are not pure are defined. Note that a destructor must be defined even if it is declared pure-virtual [class.dtor]/7."
cn flag
Here is a very detailed rundown on it https://stackoverflow.com/a/57504289 Top answer includes my previous comment ;)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.