Re: libEGPythia6.so: undefined reference to `pythia6_common_address'

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Fri, 04 May 2007 19:41:42 +0200


Did you install ROOT from source yourself? Did you build yourself libPythia6.so? If yes did you follow the instructions at http://root.cern.ch/root/Install.html (and see section: Pythia Event Generators)

Rene Brun

John Zoidberg wrote:
> 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:41:49 CEST

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