Message: linking problems when compiling example N01 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question linking problems when compiling example N01 

Keywords: N01, linking, linker, compiling, example
Forum: Documentation and Examples
Date: 19 Apr, 2004
From: Michael Gericke <mgericke@lanl.gov>

I have (as far as I can tell) successfully installed geant4.
At least it compiles without error messages...

Now I am trying to compile the example N01 and get the following
error messages: (I only show the first few lines here, because
there is quite a bit of it...)

[mgericke@gericke N01]$ gmake
Making dependency for file exampleN01.cc...
Making dependency for file src/ExN01PrimaryGeneratorAction.cc ...
Making dependency for file src/ExN01PhysicsList.cc ...
Making dependency for file src/ExN01DetectorConstruction.cc ...
Compiling ExN01DetectorConstruction.cc ...
Compiling ExN01PhysicsList.cc ...
Compiling ExN01PrimaryGeneratorAction.cc ...
Creating/replacing object files in /home/mgericke/Developement/Projects/geant4/tmp/Linux-g++/exampleN01/libexampleN01.a
Compiling exampleN01.cc ...
Using granular libraries ...
Linking exampleN01 ...
/usr/local/geant4.6.1/lib/Linux-g++/libG4event.a(G4VPrimaryGenerator.o)(.text+0xa1): In function `G4VPrimaryGenerator::CheckVertexInsideWorld(Hep3Vector const&)':
: undefined reference to `G4TransportationManager::GetTransportationManager()'
/usr/local/geant4.6.1/lib/Linux-g++/libG4run.a(G4RunManager.o)(.text+0x17e): In function `G4RunManager::G4RunManager[not-in-charge]()':
: undefined reference to `G4ProcessTable::GetProcessTable()'
/usr/local/geant4.6.1/lib/Linux-g++/libG4run.a(G4RunManager.o)(.text+0x186): In function `G4RunManager::G4RunManager[not-in-charge]()':
: undefined reference to `G4ProcessTable::CreateMessenger()'
/usr/local/geant4.6.1/lib/Linux-g++/libG4run.a(G4RunManager.o)(.text+0x40b): In function `G4RunManager::G4RunManager[in-charge]()':
: undefined reference to `G4ProcessTable::GetProcessTable()'
/usr/local/geant4.6.1/lib/Linux-g++/libG4run.a(G4RunManager.o)(.text+0x413): In function `G4RunManager::G4RunManager[in-charge]()':
: undefined reference to `G4ProcessTable::CreateMessenger()'
/usr/local/geant4.6.1/lib/Linux-g++/libG4run.a(G4RunManager.o)(.text+0x4be): In function `G4RunManager::~G4RunManager [not-in-charge]()':
: undefined reference to `G4ProcessTable::GetProcessTable()'

Apparently, I am not having some environment variable set right...

Can someone tell me what I am doing wrong?

Thanks,

Michael 

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

 Add Message Add Message
to: "linking problems when compiling example N01"

 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 ]