# \#fortran

**URL:** https://discuss.ocaml.org/tag/fortran/405.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [How to compile and link a Fortran library component with dune](https://discuss.ocaml.org/t/how-to-compile-and-link-a-fortran-library-component-with-dune/6860)

<div class="topic-metadata">

**Author:** [@n4323](https://discuss.ocaml.org/u/n4323)\
**Replies:** 12\
**Last updated:** [December 1, 2020, 5:00pm UTC](https://discuss.ocaml.org/t/how-to-compile-and-link-a-fortran-library-component-with-dune/6860 "2020-12-01T17:00:10Z")

</div>

I’m wondering if I am compiling and linking a simple one-file Fortran sublibrary correctly into my OCaml library. Ideally I would like to be able to make my library installable on linux and macos with a simple opam insta…
