libEGPythia6.so: undefined reference to `pythia6_common_address'

From: John Zoidberg <zohn.joidberg_at_gmail.com>
Date: Fri, 4 May 2007 19:00:11 +0200


I am trying to compile a macro as an external program. The problem is that I need the EGpythia6 library.

When I load it in the macro using "gSystem->Load("libEGPythia6");" it works in ROOT.

However, when I try to compile with g++, linking to the library by using "-L(path to libEGPythia6.so)" and "-lEGPythia6", I get this error:

libEGPythia6.so: undefined reference to `pythia6_common_address' collect2: ld returned 1 exit status

libPythia6.so however seems to get linked correctly.

Here is some interesting info about the libs:
>nm libEGPythia6.so | grep pythia6_common_address

         U pythia6_common_address

>nm libPythia6.so | grep pythia6_common_address
001f1dc4 T pythia6_common_address

>From the nm manual, I get:

- "T" The symbol is in the text (code) section. - "U" The symbol is undefined.

So this clearly explains the error message. Unfortunately, I don't know how to solve it...

What am I supposed to do in order to compile my macro as an external program with EGPythia6??? Received on Fri May 04 2007 - 19:00:20 CEST

This archive was generated by hypermail 2.2.0 : Fri May 04 2007 - 23:50:02 CEST