Problem 54 - src/G4PiMinusStopMaterial.cc doesn't compiled
Summary: src/G4PiMinusStopMaterial.cc doesn't compiled
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/electromagnetic/lowenergy (show other problems)
Version: 1.0
Hardware: PC All
: P2 normal
Assignee: Sebastien Incerti
URL:
Depends on:
Blocks:
 
Reported: 2000-02-08 09:07 CET by isupov
Modified: 2012-02-15 04:26 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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.