This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fwd: I May Still Need f77, please!


Joseph North wrote:


>    However, both '#include <mpi.h>' & '#include "mpi.h"' worked, which I
> don't understand:
mpif77 should incorporate the include path in your designated prefix
installation directory.  The only difference between those directives
should be that the "mpi.h" searches your local directory and in any
directories you designate with -I, while the <mpi.h> should search only
your mpi installation include directory and the include directories
specified in gfortran installation.  With "mpi.h" it seems to vary with
OS installations as to whether the <> directories come before or after
your local directories.
A common misconception is that /usr/include (for example) might appear
in search paths by default; I don't think you raised that point.
gfortran and ifort each have their own include search paths (so as not
to break the installations of various compilers) and their own options
to display them.  Likewise, part of the point of installing each of your
lam builds in its own prefix is to keep distinct versions of mpi.h.
However, I have found ifort and gfortran to be pretty much
interchangeable (but not capable of being mixed) in MPI installations. I
can agree that this sometimes is perplexing.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]