Message: Re: HELP! I'm getting linking errors "undefined reference to:..." Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Ok Re: HELP! I'm getting linking errors "undefined reference to:..." 

Keywords: linking failure example A01 undefined references geant4.7.0.p01 Linux
Forum: Documentation and Examples
Re: Question HELP! I'm getting linking errors "undefined reference to:..." (Blair Smith)
Date: 16 Aug, 2005
From: Blair Smith <bmsmith@lsu.edu>

OK,

This happened twice to me. This time I'm not going to forget the solution!

The solution: (linking error "undefined reference to...")

Well, provided you made the same mistake as me!  What happened is that 
I ran an up2date on my RedHat system, which installed new gcc libraries 
amoung other things.   This turns out to be bad for a G4 build that used
 older gcc libraries.  At least that is my suspicion, there's nothing 
scientific about this, only that this seemed to be what the problem was 
for me.  So just rebuild your G4 installation to remedy the problem.
e.g.,
cd $G4INSTALL
./Configure -build
./Configure -intall
./Configure

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Re: HELP! I'm getting linking errors "undefined reference to:...""

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]