On Feb 24, 2014, at 5:47 PM, Tim Prince <n...@aol.com> 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
jsquy...@cisco.com
For corporate legal information go to: 
http://www.cisco.com/web/about/doing_business/legal/cri/

Reply via email to