Re: [QUAR] Compiling Fortran

Eliot Moss via Cygwin <[email protected]> Fri, 10 Apr 2026 09:57:12 -0400
Newsgroups gmane.os.cygwin
Message-ID <[email protected]>
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

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple