Accessing C++ function with Mixed Upper/Lower case name from F90 subroutine
Tobias Burnus
burnus@net-b.de
Wed Mar 31 12:51:00 GMT 2010
Hi all,
Toon Moene wrote:
> The Standard (as of Fortran 2003, supported by GNU Fortran and ifort)
> way to do this is to add the following to your Fortran code:
>
> $ cat a.f90
> interface gauss
> function gauss() bind(c, name="Gauss")
> use, intrinsic :: iso_c_binding
> real(c_float) :: gauss
See also:
http://gcc.gnu.org/onlinedocs/gfortran/Mixed_002dLanguage-Programming.html
Tobias
More information about the Gcc-help
mailing list