Message: Upon compiling Example N01, cannot find CLHEP headers Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Upon compiling Example N01, cannot find CLHEP headers 

Keywords: clhep, header, compile, include
Forum: Installation and Configuration
Date: 18 Jul, 2007
From: David Yu <dryu@hep.uchicago.edu>

Hi all,

I'm having a problem with compiling the first example in the user guide. I am compiling the example in ~/test, geant4 is installed in ~/geant4.9.0, and CLHEP is at ~/clhep-2.0.3.1-osx104_ppc_gcc401.

Here is the beginning of the many lines of errors:

david-yus-computer:~/Documents/Physics/CDF/MCP_simulation/geant4_sim dryu$ g++ test.h -o test
In file included from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/globals.hh:71,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4RunManagerKernel.hh:66,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4RunManager.hh:89,
                 from test.h:10:
/Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4PhysicalConstants.hh:27:43: error: CLHEP/Units/PhysicalConstants.h: No such file or directory
In file included from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/globals.hh:72,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4RunManagerKernel.hh:66,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4RunManager.hh:89,
                 from test.h:10:
/Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4SystemOfUnits.hh:27:39: error: CLHEP/Units/SystemOfUnits.h: No such file or directory
In file included from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4Track.hh:52,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4StackedTrack.hh:38,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4StackManager.hh:37,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4EventManager.hh:37,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4RunManagerKernel.hh:67,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4RunManager.hh:89,
                 from test.h:10:
/Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4ThreeVector.hh:41:38: error: CLHEP/Vector/ThreeVector.h: No such file or directory
In file included from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4VPhysicalVolume.hh:54,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4LogicalVolume.hh:118,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4Track.hh:53,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4StackedTrack.hh:38,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4StackManager.hh:37,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4EventManager.hh:37,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4RunManagerKernel.hh:67,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4RunManager.hh:89,
                 from test.h:10:
/Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4RotationMatrix.hh:42:35: error: CLHEP/Vector/Rotation.h: No such file or directory
In file included from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4DynamicParticle.hh:59,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4Track.hh:56,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4StackedTrack.hh:38,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4StackManager.hh:37,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4EventManager.hh:37,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4RunManagerKernel.hh:67,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4RunManager.hh:89,
                 from test.h:10:
/Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4LorentzVector.hh:34:40: error: CLHEP/Vector/LorentzVector.h: No such file or directory
In file included from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4SteppingManager.hh:63,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4TrackingManager.hh:57,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4EventManager.hh:46,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4RunManagerKernel.hh:67,
                 from /Users/dryu/Documents/Physics/CDF/geant4.9.0/include/G4RunManager.hh:89,
                 from test.h:10:

For example, when geant4.9.0/include/G4LorentzVector.hh tries to include the CLHEP header CLHEP/Vector/LorentzVector.h, it can't find it. The line in G4LorentzVector.h is

#include <CLHEP/Vector/LorentzVector.h>

Thanks for your help...

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

1 None: Re: Upon compiling Example N01, cannot find CLHEP headers   (Ben Morgan - 19 Jul, 2007)
 Add Message Add Message
to: "Upon compiling Example N01, cannot find CLHEP headers"

 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 ]