Message: rdecay02 compilation error Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question rdecay02 compilation error 

Forum: Particles
Date: 29 May, 2011
From: George Tabatadze <George Tabatadze>

Hello,

I am working on rdecay02 example. I was able to compile the example and now I am trying to use root for histograms. first I added the following line to my bash file to activate the root analysis:

export G4ANALYSIS_USE_ROOT=1

and now I have problem with compilation, it gives me the following error:

Making dependency for file rdecay02.cc ... Making dependency for file src/exrdmSteppingAction.cc ... Making dependency for file src/exrdmRunAction.cc ... Making dependency for file src/exrdmPrimaryGeneratorAction.cc ... Making dependency for file src/exrdmPhysListParticles.cc ... Making dependency for file src/exrdmPhysListHadron.cc ... Making dependency for file src/exrdmPhysListEmLowEnergy.cc ... Making dependency for file src/exrdmPhysicsListMessenger.cc ... Making dependency for file src/exrdmPhysicsList.cc ... Making dependency for file src/exrdmMaterialMessenger.cc ... Making dependency for file src/exrdmMaterial.cc ... Making dependency for file src/exrdmHistoMessenger.cc ... Making dependency for file src/exrdmHisto.cc ... Making dependency for file src/exrdmEventActionMessenger.cc ... Making dependency for file src/exrdmEventAction.cc ... Making dependency for file src/exrdmEnergyDeposition.cc ... Making dependency for file src/exrdmDetectorMessenger.cc ... Making dependency for file src/exrdmDetectorConstruction.cc ... Making dependency for file src/exrdmAnalysisManager.cc ... Compiling exrdmAnalysisManager.cc ... Compiling exrdmDetectorConstruction.cc ... Compiling exrdmDetectorMessenger.cc ... Compiling exrdmEnergyDeposition.cc ... Compiling exrdmEventAction.cc ... Compiling exrdmEventActionMessenger.cc ... Compiling exrdmHisto.cc ... src/exrdmHisto.cc: In member function ‘void exrdmHisto::addTuple(const G4String&, const G4String&, const G4String&)’: src/exrdmHisto.cc:338: error: ‘w3’ was not declared in this scope /home/user/Geant4.9.4/CLHEP/include/CLHEP/Units/PhysicalConstants.h: At global scope: /home/user/Geant4.9.4/CLHEP/include/CLHEP/Units/PhysicalConstants.h:80: warning: ‘CLHEP::electron_charge’ defined but not used make: *** [/home/user/geant4/tmp/Linux-g++/rdecay02/exrdmHisto.o] Error 1

If I understand correctly the main problem is with "w3" variable in the exrdmHisto.cc. I wasn't able to track it down so far. I would greatly appreciate any help with resolving this issue.

Thank you very much in advance!

 Add Message Add Message
to: "rdecay02 compilation error"

 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 ]