| 1 | <HTML>
|
|---|
| 2 | <TITLE>
|
|---|
| 3 | </TITLE>
|
|---|
| 4 |
|
|---|
| 5 | <BODY>
|
|---|
| 6 | <TABLE WIDTH="100%"><TR>
|
|---|
| 7 | <TD>
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 | <A HREF="index.html">
|
|---|
| 11 | <IMG SRC="../../../../resources/html/IconsGIF/Contents.gif" ALT="Contents"></A>
|
|---|
| 12 | <A HREF="makeFile.html">
|
|---|
| 13 | <IMG SRC="../../../../resources/html/IconsGIF/Previous.gif" ALT="Previous"></A>
|
|---|
| 14 | <A HREF="developmentDebugTools.html">
|
|---|
| 15 | <IMG SRC="../../../../resources/html/IconsGIF/Next.gif" ALT="Next"></A>
|
|---|
| 16 | </TD>
|
|---|
| 17 | <TD ALIGN="Right">
|
|---|
| 18 | <FONT SIZE="-1" COLOR="#238E23">
|
|---|
| 19 | <B>Geant4 User's Guide</B>
|
|---|
| 20 | <BR>
|
|---|
| 21 | <B>For Application Developers</B>
|
|---|
| 22 | <BR>
|
|---|
| 23 | <B>Appendix</B>
|
|---|
| 24 | </FONT>
|
|---|
| 25 | </TD>
|
|---|
| 26 | </TR></TABLE>
|
|---|
| 27 | <BR><BR>
|
|---|
| 28 |
|
|---|
| 29 | <P ALIGN="Center">
|
|---|
| 30 | <FONT SIZE="+3" COLOR="#238E23">
|
|---|
| 31 | <B>10.6 Build for MS Visual C++</B>
|
|---|
| 32 | </FONT>
|
|---|
| 33 | <BR><BR>
|
|---|
| 34 |
|
|---|
| 35 | <HR ALIGN="Center" SIZE="7%">
|
|---|
| 36 | <BR><BR>
|
|---|
| 37 | Geant4 can be compiled with the C++
|
|---|
| 38 | compiler of MS Visual Studio C++ and the <a target="ext"
|
|---|
| 39 | href="http://cygwin.com">Cygwin toolset</A>. Detailed
|
|---|
| 40 | instructions are given in the Installation manual. As the build system relies
|
|---|
| 41 | on <TT>make</TT> and other Unix tools using only the compiler of MS Visual
|
|---|
| 42 | Studio, the section on <A HREF="makeFile.html">Makefile and environment
|
|---|
| 43 | variables</A> applies also for building with MS Visual C++.
|
|---|
| 44 | <P>
|
|---|
| 45 | We do not support compilation directly under MS Visual Studio, i.e. we do not
|
|---|
| 46 | provide workspace files <TT>(.dsw)</TT> or project files (<TT>.dsp</TT>).
|
|---|
| 47 | <P>
|
|---|
| 48 | However the executables created are debuggable using the debugger of MS Visual
|
|---|
| 49 | Studio. You may have to help the debugger finding the path to source files the
|
|---|
| 50 | first time you debug a given executable.
|
|---|
| 51 | <P>
|
|---|
| 52 | You can find below some useful pages collecting instructions on how to start
|
|---|
| 53 | with the installation of CygWin, and also tips for creating a project under
|
|---|
| 54 | Visual Studio:
|
|---|
| 55 | <UL>
|
|---|
| 56 | <LI><A target="ext"
|
|---|
| 57 | HREF="http://geant4.slac.stanford.edu/tutorial/installation/">Step by
|
|---|
| 58 | step Installation Guides</A>.</LI>
|
|---|
| 59 | <LI><A target="ext"
|
|---|
| 60 | HREF="http://www.lcsim.org/docs/gettingstarted/Cygwin/">Getting
|
|---|
| 61 | started with Cygwin</A>.</LI>
|
|---|
| 62 | <LI><A target="ext"
|
|---|
| 63 | HREF="http://www.lcsim.org/docs/gettingstarted/geant4msvc++/net2003/index.htm">Building
|
|---|
| 64 | a MSVC++ .NET 2003 Geant4 project</A>.</LI>
|
|---|
| 65 | </UL>
|
|---|
| 66 | <HR>
|
|---|
| 67 | <A HREF="../../../../Authors/html/subjectsToAuthors.html">
|
|---|
| 68 | <I>About the authors</I></A>
|
|---|