Problem 54

Summary: src/G4PiMinusStopMaterial.cc doesn't compiled
Product: Geant4 Reporter: isupov
Component: processes/electromagnetic/lowenergyAssignee: Sebastien Incerti <incerti>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 1.0   
Hardware: PC   
OS: All   

Description isupov 2000-02-08 09:07:27 CET
In the include/G4PiMinusStopMaterial.hh , line 77:
    G4double _R;    - some variable, but _R already #define'd somewhere
to 0x000400000L  . It's cause a compilation problem :)

Following ugly patch works, but authors can fix this more correctly...

*** G4PiMinusStopMaterial.hh.org        Sun Jan 30 19:30:59 2000
--- G4PiMinusStopMaterial.hh    Sun Jan 30 20:03:33 2000
***************
*** 74,79 ****
--- 74,82 ----
    G4RWTPtrOrderedVector<G4LorentzVector>* _momenta;
G4DistributionGenerator* _distributionE;
    G4DistributionGenerator* _distributionAngle;
+ #ifdef _R
+ #undef _R
+ #endif
    G4double _R;

    G4double GenerateAngle(G4double range);
Comment 1 John.Allison 2000-02-11 09:18:59 CET
Could you be more precise about operating system and compiler, please?
Also, your environment (G4SYSTEM, etc.)?
Comment 2 pia 2000-04-18 12:18:59 CEST
Fix committed to cvs.