Contents Previous Next Geant4 User's Guide
For Application Developers
Appendix


10.6 Build for MS Visual C++




Geant4 can be compiled with the C++ compiler of MS Visual Studio C++ and the Cygwin toolset. Detailed instructions are given in the Installation manual. As the build system relies on make and other Unix tools using only the compiler of MS Visual Studio, the section on Makefile and environment variables applies also for building with MS Visual C++.

We do not support compilation directly under MS Visual Studio, i.e. we do not provide workspace files (.dsw) or project files (.dsp).

However the executables created are debuggable using the debugger of MS Visual Studio. You may have to help the debugger finding the path to source files the first time you debug a given executable.

You can find below some useful pages collecting instructions on how to start with the installation of CygWin, and also tips for creating a project under Visual Studio:


About the authors