Creating programs that run without additional MinGW and MSYS libraries

I create some fortran programs with gfortran under MinGW and MSYS on my Windows 7. But when I run them on other computers on which MinGW and MSYS are not installed, the system always asks for some DLLs such as libgfortran-3.dll or libgcc_s_dw2-1 .dll.

I want to ask if there is a way to create programs that run without the additional MinGW and MSYS libraries. I heard that there is an opportunity for cygwin users, namly '-mno-cygwin', which makes programs without cygwin1.dll. Is there a similar option for MinGW and MSYS?

+3
source share
2 answers

MinGW-w64 32- 64- , .

, dll.

+3

MinGW-w64 Cygwin setup -static, libgfortran-3.dll. .

i686-w64-mingw32-gfortran -o hello.exe -Wall -static hello.f
0

All Articles