Message: Linker error 'undefined reference' Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Linker error 'undefined reference' 

Keywords: undefined reference example
Forum: Installation and Configuration
Date: 04 Sep, 2007
From: <gruenwald@physik.rwth-aachen.de>

Hi!

Just installed geant4.9.0 along with the new patch on Scientific Linux. 
Variables are set as follows:

--------------------------------------------
4LEVELGAMMADATA=/.../geant4.9.0/data/PhotonEvaporation2.0
G4INSTALL=/.../geant4.9.0
G4VIS_BUILD_VRML_DRIVER=1
G4INCLUDE=/.../geant4.9.0/include/
G4LEDATA=/.../geant4.9.0/data/G4EMLOW4.3
G4UI_BUILD_XAW_SESSION=1
G4UI_BUILD_XM_SESSION=1
G4NEUTRONHPDATA=/.../geant4.9.0/data/G4NDL3.11
G4VIS_BUILD_OPENGLX_DRIVER=1
G4RADIOACTIVEDATA=/.../geant4.9.0/data/RadioactiveDecay3.2
G4VIS_USE_DAWN=1
G4LIB=/.../geant4.9.0/lib
G4VIS_BUILD_RAYTRACERX_DRIVER=1
G4VIS_BUILD_OPENGLXM_DRIVER=1
G4LIB_BUILD_SHARED=1
G4LIB_BUILD_STATIC=1
G4UI_USE_XAW=1
G4UI_USE_XM=1
G4VIS_USE_OPENGLX=1
G4UI_USE_TCSH=1
G4LIB_USE_GRANULAR=1
G4VIS_USE_RAYTRACERX=1
G4SYSTEM=Linux-g++
G4VIS_BUILD_DAWN_DRIVER=1
G4WORKDIR=/.../geant4
LOG4J_INSTALL_PATH=/usr
G4VIS_USE_VRML=1
G4VIS_USE_OPENGLXM=1
--------------------------------------------

Running make for novice example N01 produces following output:

--------------------------------------------
bash-3.00$ make
Using granular libraries ...
Linking exampleN01 ...
/.../geant4.9.0/lib/Linux-g++/libG4magneticfield.so: undefined reference to `G4MagHelicalStepper::AdvanceHelix(double const*, CLHEP::Hep3Vector, double, double*)'
/.../geant4.9.0/lib/Linux-g++/libG4OpenGL.so: undefined reference to `G4Xt::PutStringInResourceDatabase(char*)'
/.../geant4.9.0/lib/Linux-g++/libG4OpenGL.so: undefined reference to `G4Xt::getInstance()'
collect2: ld returned 1 exit status
make: *** [/.../geant4/bin/Linux-g++/exampleN01] Error 1
--------------------------------------------

Help would be appreciated!

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

1 Question: Re: Linker error 'undefined reference'   (Gabriele Cosmo - 05 Sep, 2007)
1 None: Re: Linker error 'undefined reference'   (gruenwald@physik.rwth-aachen.de - 10 Sep, 2007)
3 None: Re: Linker error 'undefined reference'   (gruenwald@physik.rwth-aachen.de - 10 Sep, 2007)
 Add Message Add Message
to: "Linker error 'undefined reference'"

 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 ]