How to Fix the Missing libgfortran-3.dll ======================================== Author: Momchil Ivanov Date : 2014.03.04 Introduction ------------ This article describes how to fix the following error message when compiling with mingw64: main.exe: error while loading shared libraries: libgfortran-3.dll: cannot open shared object file: No such file or directory Method 1 -------- Add the path [1] to the environment variable PATH: $ export PATH=/usr/x86_64-w64-mingw32/sys-root/mingw/bin/:$PATH Method 2 -------- Copy libgfortran-3.dll from [1] into the current directory. Paths ----- 1: /usr/x86_64-w64-mingw32/sys-root/mingw/bin/