[QUAR] Compiling Fortran
Eliot Moss
moss@cs.umass.edu
Fri Apr 10 13:57:12 GMT 2026
On 4/10/2026 9:41 AM, Jean-Pierre Coulon via Cygwin wrote:
> I have run the setup-x86_64.exe you find in https://www.mingw-w64.org/downloads/
>
> Now there are 260 executables in \cygwin\bin. Which one is the Fortran compiler?
>
> Bye,
Assuming you installed it, probably gfortran (GNU Fortran). Cygwin is not a monolithic
install like a Linux OS. It is a library that maps POSIX library calls onto Windows
functionality as best it can. This is often good enough to support recompiling a
Linux (POSIX compatible) program and getting it to run with essentially the same
functionality under Windows.
Mingw is different from Cygwin. It aims the support building Windows-native
applications using the GNU compiler suite. It targets Windows directly as opposed
Cygwin gcc, which targets the Cygwin library interface.
Anyway, maybe this Stack Overflow post will behelpful to you:
https://stackoverflow.com/questions/39727436/how-do-i-build-compile-fortran-with-mingw-gfortran-via-cmake
HTH -- Eliot Moss
More information about the Cygwin
mailing list