I am having a problem runnin PYTHIA8 through ROOT.
To be more precise, I am trying to run one of the example files of PYTHIA8 through root (main05.cc), in compile mode. Meaning that I ask root to just take the program as it is, build it and run it.
The problem is that I get this error:
root [1] .x main05.cc++
Info in TUnixSystem::ACLiC: creating shared library /home/user02/pythia8108/examples/./main05_cc.so
dlopen error: /home/user02/pythia8108/examples/./main05_cc.so: undefined symbol: _ZN7Pythia85Event4listEbbRSo
Load Error: Failed to load Dynamic link library /home/user02/pythia8108/examples/./main05_cc.so
I have already included in the .cc file all the header files that are in the /pythia8108/include directory. I also executed the .include command to include the pythia/include directory.
I managed to find which part of the program causes the crash by slowly commenting out one by one all the other lines in the file. It’s the pythia constructor :
Pythia pythia;
Do you have any idea what could be the problem?