Problem 841 - compiling problems with 8.0_p01 (e.g. examples/novice/N07 doesn't compile)
Summary: compiling problems with 8.0_p01 (e.g. examples/novice/N07 doesn't compile)
Status: RESOLVED WORKSFORME
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/hadronic/stopping (show other problems)
Version: other
Hardware: All All
: P2 normal
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2006-02-17 11:03 CET by jasondet
Modified: 2006-02-20 01:52 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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.