Problem 841

Summary: compiling problems with 8.0_p01 (e.g. examples/novice/N07 doesn't compile)
Product: Geant4 Reporter: jasondet
Component: processes/hadronic/stoppingAssignee: Gabriele Cosmo <Gabriele.Cosmo>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P2    
Version: other   
Hardware: All   
OS: All   

Description jasondet 2006-02-17 11:03:50 CET
I'm having problems compiling applications after installing patch 1 to G4.8.0.
In my own application, I'm getting the following errors at the linking stage:

/auto/majorana1/users/jasondet/MaGePristine/lib/libprocesses.a(MGProcessesList.o)(.text+0x2545):
In function `MGProcessesList::ConstructEM()':
src/MGProcessesList.cc:376: undefined reference to
`G4MuonMinusCaptureAtRest::G4MuonMinusCaptureAtRest[in-charge](G4String const&)'
/auto/majorana1/users/jasondet/MaGePristine/lib/libprocesses.a(MGProcessesList.o)(.text+0x46d6):
In function `MGProcessesList::ConstructStdEM()':
src/MGProcessesList.cc:498: undefined reference to
`G4MuonMinusCaptureAtRest::G4MuonMinusCaptureAtRest[in-charge](G4String const&)'
/auto/majorana1/users/jasondet/MaGePristine/lib/libprocesses.a(MGProcessesList.o)(.text+0x63bf):
In function `MGProcessesList::ConstructHad()':
src/MGProcessesList.cc:750: undefined reference to
`G4PiMinusAbsorptionAtRest::G4PiMinusAbsorptionAtRest[in-charge](G4String const&)'
/auto/majorana1/users/jasondet/MaGePristine/lib/libprocesses.a(MGProcessesList.o)(.text+0x6d2b):src/MGProcessesList.cc:799:
undefined reference to
`G4KaonMinusAbsorptionAtRest::G4KaonMinusAbsorptionAtRest[in-charge](G4String
const&)'
/auto/majorana1/users/jasondet/MaGePristine/lib/libprocesses.a(MGProcessesList.o)(.text+0x76ca):src/MGProcessesList.cc:853:
undefined reference to
`G4AntiProtonAnnihilationAtRest::G4AntiProtonAnnihilationAtRest[in-charge](G4String
const&)'
/auto/majorana1/users/jasondet/MaGePristine/lib/libprocesses.a(MGProcessesList.o)(.text+0x8d7f):src/MGProcessesList.cc:962:
undefined reference to
`G4AntiNeutronAnnihilationAtRest::G4AntiNeutronAnnihilationAtRest[in-charge](G4String
const&)'
/auto/majorana1/users/jasondet/MaGePristine/lib/libmanagement.a(MGManagementVisualization.o)(.text+0x292):
In function `MGManagementVisualization::RegisterGraphicsSystems()':
src/MGManagementVisualization.cc:100: undefined reference to
`G4RayTracer::G4RayTracer[in-charge](G4VFigureFileMaker*, G4VRTScanner*)'
collect2: ld returned 1 exit status


This appears to be a library-ordering problem, or perhaps a library
interdependancy, and the problem libraries appear to be libG4hadronic_stop.a and
libG4RayTracer.a. To demonstrate that this is not just a problem with my own
application, I found that I could not even compile example N07, which uses the
RayTracer.

Jason
Comment 1 Gabriele Cosmo 2006-02-20 01:51:59 CET
If you upgraded your existing installation to 8.0.p01, make sure you also
recompiled and reinstalled your geant4 libraries. The error messages you get
seems related to the fact that you're linking against old libs.
N07 builds and runs fine on 8.0.p01.