Message: Cannot find headers Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Cannot find headers 

Forum: Installation and Configuration
Date: 03 May, 2010
From: Neoh <Neoh>

Dear all,

I recently installed the geant4 into my university linux cluster, the installation was successful, but when I compiled the novice examples it just couldn't find the headers. Here are the output when I tried to compile my own program (the messages from novice examples are similar):

 Making dependency for file BT.cc ...
 BT.cc:5:37: error: BTDetectorConstruction.hh: No such file or directory
 BT.cc:6:28: error: BTPhysicsList.hh: No such file or directory
 BT.cc:7:39: error: BTPrimaryGeneratorAction.hh: No such file or directory
 BT.cc:8:26: error: BTRunAction.hh: No such file or directory
 BT.cc:9:28: error: BTEventAction.hh: No such file or directory
 BT.cc:10:31: error: BTSteppingAction.hh: No such file or directory
 BT.cc:11:32: error: BTSteppingVerbose.hh: No such file or directory
 Making dependency for file src/BTSteppingVerbose.cc ...
 Making dependency for file src/BTSteppingAction.cc ...
 Making dependency for file src/BTRunAction.cc ...
 Making dependency for file src/BTPrimaryGeneratorAction.cc ...
 Making dependency for file src/BTPhysicsListMessenger.cc ...
 Making dependency for file src/BTPhysicsList.cc ...
 Making dependency for file src/BTParameterisation.cc ...
 Making dependency for file src/BTEventAction.cc ...
 Making dependency for file src/BTDetectorMessenger.cc ...
 Making dependency for file src/BTDetectorConstruction.cc ...
 Making dependency for file BT.cc ...
 BT.cc:5:37: error: BTDetectorConstruction.hh: No such file or directory
 BT.cc:6:28: error: BTPhysicsList.hh: No such file or directory
 BT.cc:7:39: error: BTPrimaryGeneratorAction.hh: No such file or directory
 BT.cc:8:26: error: BTRunAction.hh: No such file or directory
 BT.cc:9:28: error: BTEventAction.hh: No such file or directory
 BT.cc:10:31: error: BTSteppingAction.hh: No such file or directory
 BT.cc:11:32: error: BTSteppingVerbose.hh: No such file or directory
 Compiling BTDetectorConstruction.cc ...
 g++: /Linux-g++/BT/BTDetectorConstruction.o: No such file or directory
 make: *** [/Linux-g++/BT/BTDetectorConstruction.o] Error 1

I tried to moved the headers from inside the "include" folder to the same directory as the main or inside "src", but it still couldn't work. I don't know why it cannot detect the headers ONLY? I used the same makefile as novice N03, and set all files to root permission also.

Neoh

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

1 Question: Re: Cannot find headers   (Ben Morgan - 05 May, 2010)
(_ None: Re: Cannot find headers   (Neoh - 10 May, 2010)
(_ None: Re: Cannot find headers   (Ben Morgan - 10 May, 2010)
(_ None: Re: Cannot find headers   (Neoh - 25 May, 2010)
(_ None: Re: Cannot find headers   (Ben Morgan - 26 May, 2010)
(_ None: Re: Cannot find headers   (Neoh - 31 May, 2010)
(_ Note: Re: Cannot find headers   (Ben Morgan - 01 Jun, 2010)
 Add Message Add Message
to: "Cannot find 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 ]