main

::COMPILING MPICH APPLICATIONS:

If you are using gcc or g77 go here

C/C++ Applications using Visual C++:

For a graphical help example go here.

Here are the settings necessary to compile an mpi application written in C/C++ with MS Visual C++.

Create a new makefile or project and make the following compiler settings:

include path:

- [MPICH Home]\include

switches:

- Debug - /MTd
- Release - /MT

libraries:

- Debug - ws2_32.lib mpichd.lib
- Release - ws2_32.lib mpich.lib

lib path:

- [MPICH Home]\lib

Add your source files to the project and then build.

FORTRAN applications:

Include mpif.h

Link to the same libraries listed above.

The dlls contain the following interfaces:

- Uppercase externals using the standard calling convention with mixed string length parameters: MPI_INIT, default values for Visual Fortran
- Uppercase externals using the C calling convention with string length parameters at the end of the list: MPI_INIT, default values for Intel's Fortran compiler
- Lowercase double underscore externals using the C calling convention with string length parameters at the end of the list: mpi_init__, default for g77

If your Fortran compiler doesn't match any of these options you will have to re-compile the mpich source.

Note:

- If you are not using Visual Fortran then you may get unresolved symbols and you will have to recompile mpich from the source distribution. You will have to change farg.f to use the corresponding "getarg" and "nargs" calls provided by your compiler and set the USE lines to the appropriate modules. Look in farg.f to see what needs to be changed.

main
Re-Building MPICH.NT