# <span class='text-muted'>222.</span> C can call Fortran procedures with prototypes generated by gfortran -fc-prototypes.

<span style='font-size: small;' class='text-muted'>topic: {ref}`interoperability-with-c`</span>

```{note}
This tip is a draft[^draft].

[^draft]: 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.
```

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.


---

<blockquote class="twitter-tweet"><p lang="en" dir="ltr">C can call interoperable Fortran bind(c) procedures with prototypes, which can be generated with<br><br>gfortran -c -fc-prototypes source.f90<br><br>Linking the C and Fortran object files with the Fortran compiler enables access to the Fortran run-time library.<a href="https://t.co/nzl0FXzeUf">pic.twitter.com/nzl0FXzeUf</a></p>&mdash; FortranTip (@fortrantip) <a href="https://twitter.com/fortrantip/status/1527982071943159809?ref_src=twsrc%5Etfw">May 21, 2022</a></blockquote><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>