How to Install gfortran-mingw-w64 in Ubuntu 18.04



Install gfortran-mingw-w64 by entering the following commands in the terminal:

sudo apt update
sudo apt install gfortran-mingw-w64

Description:

GNU Fortran compiler for MinGW-w64

MinGW-w64 provides a development and runtime environment for 32- and 64-bit (x86 and x64) Windows applications using the Windows API and the GNU Compiler Collection (gcc). . This metapackage provides the Fortran compiler, supporting cross-compiling to 32- and 64-bit MinGW-w64 targets.

Homepage: http://www.gnu.org/software/gcc/

Version: 7.3.0-11ubuntu1+20.2build1

Section: universe/devel