Problem with compilation due to another copy of mingw on my computer
Arjen Markus
arjen.markus895@gmail.com
Mon Jun 22 12:12:00 GMT 2015
Hi Alexander,
I have had that problem too. The easiest way out is to rename the
directory E:\Haskell Platform to something else as it has been added
to the path on installation.
What might work too is to put the Fortran installation directory at
the start of the path, something like:
set path=c:\whatever-directory-the-gfortran-compiler-is-in;%PATH%
but you would have to do that within a DOS-box where you want to run
gfortran or more permanently in the system's environment settings
Regards,
Arjen
2015-06-22 14:06 GMT+02:00 Alexander L <out_of_orbit@rambler.ru>:
>
>
> Greetings all,
>
> I'm new to gfortran compiler, and have a problem.
> I've installed gfortran compiler and when I compile a Fortran source file
> with a command like
>
> gfortran D:\f90\test.f90 -o D:\f90\test.exe ,
>
> I receive error message:
>
> E:\Haskell Platform\2014.2.0.0\mingw\bin/ld.exe: unrecognized option
> '-plugin'
> E:\Haskell Platform\2014.2.0.0\mingw\bin/ld.exe: use the --help option for
> usage
> information
> collect2.exe: error: ld returned 1 exit status
>
> 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?
>
>
> Thanks in advance.
>
> --------------------------
> Alexander
More information about the Fortran
mailing list