Top "Fortran-iso-c-binding" questions

The standard Fortran interoperability with C consists of the `BIND(C)` attribute, which enables C calling conventions and changes symbol names and the ISO_C_BINDING module , which provides access to named constants that represent kind type parameters of data representations compatible with C types, the derived type C_PTR corresponding to any C data pointer type, the derived type C_FUNPTR corresponding to any C function pointer type, and four procedures.

Calling C function/subroutine in Fortran code

I am attempting to compile and link a Fortran code calling c subroutine: Fortran code: program adder integer a,b …

c compilation fortran fortran-iso-c-binding
Calling a FORTRAN subroutine from C

I am trying to call a FORTRAN function from C My questions are: If fortRoutine is the name of my …

c fortran fortran-iso-c-binding
Sleep in Fortran

Does anyone know of an way to sleep for a given number of milliseconds in Fortran? I do not want …

fortran fortran-iso-c-binding
How to debug Fortran 90 compile error "There is no specific subroutine for the generic 'foo' at (1)"?

I am trying to write Fortran 2003 bindings to CUFFT library using iso_c_bindings module, but I have problems with …

compiler-errors fortran fortran90 gfortran fortran-iso-c-binding
Creating a FORTRAN interface to a C function that returns a char*

I've been held up on this for about a week, now, and have searched forum after forum for a clear …

c interface char fortran fortran-iso-c-binding