mpich provides tools that simplify creating MPI executables. Because mpich programs may require special libraries and compile options, you should use the commands that mpich provides for compiling and linking programs. These commands are mpicc for C programs and mpif77 for Fortran programs.