Problem 151

Summary: Link errors for TestEm4
Product: Examples/Extended Reporter: sudhakar.chelikani
Component: electromagnetic/TestEM0-4. 11-18Assignee: Michel.Maire
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P2    
Version: 2.0   
Hardware: PC   
OS: Linux   

Description sudhakar.chelikani 2000-08-19 16:29:27 CEST
While trying to link TestEm4, I get the following error messages:
===============================================
../libTestEm4.a(Em4RunAction.o):
In function `Em4RunAction::bookHisto(void)':
Em4RunAction.o(.text+0x3ed): undefined reference to
`HBookFile::HBookFile(char const *, int)'
===============================================

I have the include file HBookFile.h in the CLHEP/Hist directory.
Do I have to do anything else? Please advise.
Comment 1 Gabriele Cosmo 2000-08-22 10:55:59 CEST
As reported in the release-notes for Geant4 2.0, the new CLHEP release 1.5
does not support anymore the "Hist" module by default. The installation of
the "Hist" module on CLHEP has to be done manually (please ask to CLHEP
support for more details - editor: Evgueni.Tcherniev@cern.ch).
For a successful compilation of "extended/electromagnetic" examples, but
excluding capability of histogramming, compile with "gmake G4NOHIST=1".