Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] linking with openmpi version 1.6.1
From: Jeff Squyres (jsquyres) (jsquyres_at_[hidden])
Date: 2014-02-24 17:48:51

On Feb 24, 2014, at 5:47 PM, Tim Prince <n8tm_at_[hidden]> wrote:

>> Or you can use the new Fortran'08 C interop stuff (BIND(C)), in which you can specify the C symbol name in the Fortran code. Be aware that while this is supported in some Fortran compilers, it is not yet necessarily supported in the version of gfortran that you may be using.
> iso_c_binding was introduced in Fortran 03, and supported in gfortran at least since version 4.4, which is about as old a version as you have any business trying (no older ones have adequate documentation remaining on line).

Thanks for the correction.

This is why I shouldn't write any Fortran code. :-)

The ISO_C_BINDING stuff is what you should use; then you don't have to do any funky symbol mangling in C to match whatever Fortran is doing.

Jeff Squyres
For corporate legal information go to: