Problem 129

Summary: linker errors with libG4vis_management.a, libG4particles.a
Product: Geant4 Reporter: kirch
Component: configAssignee: Gabriele Cosmo <Gabriele.Cosmo>
Status: RESOLVED WORKSFORME    
Severity: critical CC: kirch
Priority: P1    
Version: 2.0   
Hardware: PC   
OS: Linux   

Description kirch 2000-07-13 13:18:36 CEST
Linking exampleN02 ...
/home/kirch/G4/tmp/Linux-g++/exampleN02/libexampleN02.a(ExN02RunAction.o): In fu
nction `ExN02RunAction::BeginOfRunAction(G4Run const *)':
ExN02RunAction.o(.text+0xa3): undefined reference to `G4UImanager::ApplyCommand(
char *)'
ExN02RunAction.o(.text+0xba): undefined reference to `G4UImanager::ApplyCommand(
char *)'
ExN02RunAction.o(.text+0xc5): undefined reference to `G4UImanager::ApplyCommand(
char *)'
/home/kirch/G4/tmp/Linux-g++/exampleN02/libexampleN02.a(ExN02RunAction.o): In fu
nction `ExN02RunAction::EndOfRunAction(G4Run const *)':
ExN02RunAction.o(.text+0xe8): undefined reference to `G4UImanager::ApplyCommand(
char *)'
/usr/local/cern/G4/geant4.2.0/lib/Linux-g++/libG4vis_management.a(G4VisCommandsS
ceneHandler.o): In function `G4VVisCommandSceneHandler::UpdateCandidateLists(voi
d)':
G4VisCommandsSceneHandler.o(.text+0xa27): undefined reference to `G4VVisCommand:
:sceneHandlerNameCommands'
G4VisCommandsSceneHandler.o(.text+0xa2e): undefined reference to `G4VVisCommand:
:sceneHandlerNameCommands'
/usr/local/cern/G4/geant4.2.0/lib/Linux-g++/libG4vis_management.a(G4VisCommandsS
ceneHandler.o): In function `G4VisCommandSceneHandlerAttach::G4VisCommandSceneHa
ndlerAttach(void)':
G4VisCommandsSceneHandler.o(.text+0x1b40): undefined reference to `G4VVisCommand
::sceneNameCommands'
G4VisCommandsSceneHandler.o(.text+0x1b46): undefined reference to `G4VVisCommand
::sceneNameCommands'
G4VisCommandsSceneHandler.o(.text+0x1b56): undefined reference to `G4VVisCommand
::sceneNameCommands'
G4VisCommandsSceneHandler.o(.text+0x1b62): undefined reference to `G4VVisCommand
::sceneNameCommands'
G4VisCommandsSceneHandler.o(.text+0x1b68): undefined reference to `G4VVisCommand
::sceneNameCommands'
/usr/local/cern/G4/geant4.2.0/lib/Linux-g++/libG4vis_management.a(G4VisCommandsS
ceneHandler.o): In function `G4VisCommandSceneHandlerList::G4VisCommandSceneHand
lerList(void)':
G4VisCommandsSceneHandler.o(.text+0x6a64): undefined reference to `G4VVisCommand
::sceneHandlerNameCommands'
G4VisCommandsSceneHandler.o(.text+0x6a6a): undefined reference to `G4VVisCommand
::sceneHandlerNameCommands'
G4VisCommandsSceneHandler.o(.text+0x6a7a): undefined reference to `G4VVisCommand
::sceneHandlerNameCommands'
G4VisCommandsSceneHandler.o(.text+0x6a92): undefined reference to `G4VVisCommand
::sceneHandlerNameCommands'
G4VisCommandsSceneHandler.o(.text+0x6a98): undefined reference to `G4VVisCommand
::sceneHandlerNameCommands'
/usr/local/cern/G4/geant4.2.0/lib/Linux-g++/libG4vis_management.a(G4VisCommandsS
ceneHandler.o)(.text+0x8110): more undefined references to `G4VVisCommand::scene
HandlerNameCommands' follow
/usr/local/cern/G4/geant4.2.0/lib/Linux-g++/libG4vis_management.a(G4VisCommandsS
cene.o): In function `G4VVisCommandScene::UpdateCandidateLists(void)':
G4VisCommandsScene.o(.text+0xc47): undefined reference to `G4VVisCommand::sceneN
ameCommands'
G4VisCommandsScene.o(.text+0xc4e): undefined reference to `G4VVisCommand::sceneN
ameCommands'
/usr/local/cern/G4/geant4.2.0/lib/Linux-g++/libG4vis_management.a(G4VisCommandsS
cene.o): In function `G4VisCommandSceneCreate::G4VisCommandSceneCreate(void)':
G4VisCommandsScene.o(.text+0x1c90): undefined reference to `G4VVisCommand::scene
NameCommands'
G4VisCommandsScene.o(.text+0x1c96): undefined reference to `G4VVisCommand::scene
NameCommands'
G4VisCommandsScene.o(.text+0x1ca6): undefined reference to `G4VVisCommand::scene
NameCommands'
/usr/local/cern/G4/geant4.2.0/lib/Linux-g++/libG4vis_management.a(G4VisCommandsS
cene.o)(.text+0x1cb2): more undefined references to `G4VVisCommand::sceneNameCom
mands' follow
/usr/local/cern/G4/geant4.2.0/lib/Linux-g++/libG4vis_management.a(G4VisCommandsV
iewer.o): In function `G4VVisCommandViewer::UpdateCandidateLists(void)':
G4VisCommandsViewer.o(.text+0xc37): undefined reference to `G4VVisCommand::viewe
rNameCommands'
G4VisCommandsViewer.o(.text+0xc3e): undefined reference to `G4VVisCommand::viewe
rNameCommands'
/usr/local/cern/G4/geant4.2.0/lib/Linux-g++/libG4vis_management.a(G4VisCommandsV
iewer.o): In function `G4VisCommandViewerCreate::G4VisCommandViewerCreate(void)'
:
G4VisCommandsViewer.o(.text+0x2054): undefined reference to `G4VVisCommand::view
erNameCommands'
G4VisCommandsViewer.o(.text+0x205a): undefined reference to `G4VVisCommand::view
erNameCommands'
G4VisCommandsViewer.o(.text+0x206a): undefined reference to `G4VVisCommand::view
erNameCommands'
/usr/local/cern/G4/geant4.2.0/lib/Linux-g++/libG4vis_management.a(G4VisCommandsV
iewer.o)(.text+0x2082): more undefined references to `G4VVisCommand::viewerNameC
ommands' follow
/usr/local/cern/G4/geant4.2.0/lib/Linux-g++/libG4particles.a(G4IonTable.o): In f
unction `G4IonTable::AddProcessManager(G4String const &)':
G4IonTable.o(.text+0x2ec1): undefined reference to `G4UImanager::ApplyCommand(ch
ar *)'
/usr/local/cern/G4/geant4.2.0/lib/Linux-g++/libG4particles.a(G4IonTable.o): In f
unction `G4IonTable::SetCuts(G4ParticleDefinition *)':
G4IonTable.o(.text+0x3204): undefined reference to `G4UImanager::ApplyCommand(ch
ar *)'
/usr/local/cern/G4/geant4.2.0/lib/Linux-g++/libG4particles.a(G4ChargedGeantino.o
): In function `G4ChargedGeantino::G4ChargedGeantino(G4String const &, double, d
ouble, double, int, int, int, int, int, int, G4String const &, int, int, int, bo
ol, double, G4DecayTable *)':
G4ChargedGeantino.o(.text+0x8f): undefined reference to `SetParticleSubType'
/usr/local/cern/G4/geant4.2.0/lib/Linux-g++/libG4particles.a(G4Gamma.o): In func
tion `G4Gamma::G4Gamma(G4String const &, double, double, double, int, int, int,
int, int, int, G4String const &, int, int, int, bool, double, G4DecayTable *)':
G4Gamma.o(.text+0x8f): undefined reference to `SetParticleSubType'
/usr/local/cern/G4/geant4.2.0/lib/Linux-g++/libG4particles.a(G4Geantino.o): In f
unction `G4Geantino::G4Geantino(G4String const &, double, double, double, int, i
nt, int, int, int, int, G4String const &, int, int, int, bool, double, G4DecayTa
ble *)':
G4Geantino.o(.text+0x8f): undefined reference to `SetParticleSubType'
/usr/local/cern/G4/geant4.2.0/lib/Linux-g++/libG4particles.a(G4AntiNeutrinoE.o):
 In function `G4AntiNeutrinoE::G4AntiNeutrinoE(G4String const &, double, double,
 double, int, int, int, int, int, int, G4String const &, int, int, int, bool, do
uble, G4DecayTable *)':
G4AntiNeutrinoE.o(.text+0x8f): undefined reference to `SetParticleSubType'
/usr/local/cern/G4/geant4.2.0/lib/Linux-g++/libG4particles.a(G4AntiNeutrinoMu.o)
: In function `G4AntiNeutrinoMu::G4AntiNeutrinoMu(G4String const &, double, doub
le, double, int, int, int, int, int, int, G4String const &, int, int, int, bool,
 double, G4DecayTable *)':
G4AntiNeutrinoMu.o(.text+0x8f): undefined reference to `SetParticleSubType'
/usr/local/cern/G4/geant4.2.0/lib/Linux-g++/libG4particles.a(G4Electron.o)(.text
+0x8f): more undefined references to `SetParticleSubType' follow
collect2: ld returned 1 exit status
make: *** [/home/kirch/G4/bin/Linux-g++/exampleN02] Error 1
Comment 1 John.Allison 2000-07-14 08:31:59 CEST
Linker errors often happen if the environment has been changed
*after* making the libraries.  The only safe solution is to remake
the libraries and the "library map".  Libraries affected by the
change of environment might need remaking from scratch.  See our
Frequently Asked Questions under Support on our home page,
http://wwwinfo.cern.ch/asd/geant4/geant4.html.  The first question
under Visualization addresses such an issue.
If the problem remains, please notify us again.