Problem 683 - Error building example N01
Summary: Error building example N01
Status: RESOLVED WORKSFORME
Alias: None
Product: Geant4
Classification: Unclassified
Component: run (show other problems)
Version: 6.2
Hardware: PC Linux
: P2 normal
Assignee: Makoto.Asai
URL:
Depends on:
Blocks:
 
Reported: 2004-11-01 08:29 CET by d.wahl1
Modified: 2004-11-08 03:46 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 d.wahl1 2004-11-01 08:29:18 CET
I have tried building example N01 as descibed in the help pages.
I get a very large number of error messages when doing this and ultimately
cannot compile the example.
The first 20 lines are shown at the bottom of this message.

When installing GEANT 4.6.2 (with gcc 3.3.3 and CLHEP 1.8.2.0) I received some
basic warnings but nothing which stopped the compilation.
I do not know how to attach the log file via the internet interface, but they
were basically warnings saying some variables could be used uninitialised.
So I do not think that is the problem.

Secondly we had a problem finding the CLHEP library. We were searching in the
right directory but for the wrong filename. This was solved by creating a soft
link.

Then I tried to compile the N01 example ($G4WORKDIR/examples/novice/N01/) and
got the error mesge shoen below.
Do you know what this is due to?

Many thanks.

Regards,

David Wahl





----------------------------------------------
ppcresst1-30> ls
exampleN01.cc   exampleN01.in   GNUmakefile  include  src
exampleN01.err  exampleN01.out  History      README
ppcresst1-31> 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 /datadisk/cresst/geant4/tmp/Linux-g++/example
N01/libexampleN01.a ...
Compiling exampleN01.cc ...
Using granular libraries ...
Linking exampleN01 ...
/datadisk/cresst/geant4/tmp/Linux-g++/exampleN01/exe/exampleN01.o: In function `
__static_initialization_and_destruction_0(int, int)':
/datadisk/cresst/geant4/tmp/Linux-g++/exampleN01/exe/exampleN01.o(.text+0x19c):
undefined reference to `HepRandom::createInstance()'
/datadisk/cresst/geant4/geant4.6.2.p02/lib/Linux-g++/libG4run.a(G4RunManager.o):
 In function `G4RunManager::RunInitialization()':
G4RunManager.o(.text+0xec4): undefined reference to `HepRandom::saveEngineStatus
(char const*)'
/datadisk/cresst/geant4/geant4.6.2.p02/lib/Linux-g++/libG4run.a(G4RunManager.o):
 In function `G4RunManager::GenerateEvent(int)':
G4RunManager.o(.text+0x141c): undefined reference to `HepRandom::saveEngineStatu
s(char const*)'
/datadisk/cresst/geant4/geant4.6.2.p02/lib/Linux-g++/libG4run.a(G4RunManager.o):
 In function `G4RunManager::RestoreRandomNumberStatus(G4String)':
G4RunManager.o(.text+0x2840): undefined reference to `HepRandom::restoreEngineSt
atus(char const*)'
G4RunManager.o(.text+0x2881): undefined reference to `HepRandom::showEngineStatu
s()'
Comment 1 Gabriele Cosmo 2004-11-08 03:46:59 CET
Please have a look at your CLHEP installation and the library file-name.
You find some hints also in our FAQ page:
http://cern.ch/geant4/support/faq.html