222. C can call Fortran procedures with prototypes generated by gfortran -fc-prototypes.#
topic: Interoperability with C and C++
Note
This tip is a draft1.
C can call interoperable Fortran bind(c) procedures with prototypes, which can be generated with
gfortran -c -fc-prototypes source.f90
Linking the C and Fortran object files with the Fortran compiler enables access to the Fortran run-time library.
C can call interoperable Fortran bind(c) procedures with prototypes, which can be generated with
— FortranTip (@fortrantip) May 21, 2022
gfortran -c -fc-prototypes source.f90
Linking the C and Fortran object files with the Fortran compiler enables access to the Fortran run-time library.pic.twitter.com/nzl0FXzeUf
- 1
From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.