Problem with compilation due to another copy of mingw on my computer

FX fxcoudert@gmail.com
Mon Jun 22 12:14:00 GMT 2015


Dear Alexander,

> E:\Haskell Platform\2014.2.0.0\mingw\bin/ld.exe: unrecognized option '-plugin’

Remove the Haskell-related mingw copy from your PATH and all environment variables. The gfortran.exe binary will then be able to find the linker that was provided with gfortran itself, for which it is configured.


> I have Haskell platform on disc E. If I temporarily change Haskell platform's folder name, my file compiles without errors. But when I run the executable file, I receive error message that file "libgcc_s_dw2-1.dll" is not found. This file is both in gfortran's directory and in Haskell's. Is there any way to solve this problem?

Compiling only with gfortran’s mingw, this should not happen. You may get around it by compiling with the -static or -static-libgcc options.

FX


More information about the Fortran mailing list