Geant4 code modifications for MSVC++.Net

Introduction

The Geant4 v5.0 code, as released, does not compile under VC++ .Net, so some patches are required. These have been archived into a file in .ZIP format and is available here. This should be unzipped into the root directory of your Geant4 installation and will overwrite the existing code.

The following files were modified:

The redefinition of min and max is no longer necessary so the following modifications were made to globals.hh:

Most of the errors are caused by CLHEP's redefinition of the abs function. This removes the system definition which defines abs for complex numbers and results in the following errors:

Problem encountered in compiling G4RadioactiveDecay: Problem encountered in building G4xcitationHandler:

Contact

If you have any comments or suggestions, especially contributions to improve this set of instructions, please contact me.

Norman Graf