roro
roro

Reputation: 940

installing gfortran in cygwin: gfortran: cyglto_plugin.dll not found

I'm trying to get the gfortran compiler with cygwin. When attempting to compile a hello world program, I get the following error:

gfortran: fatal error: -fuse-linker-plugin, but cyglto_plugin.dll not found compilation terminated.

To install the compiler, I used the cygwin setup and selected gcc-fortran: GNU compiler collection libgfortran3: GCC fortran runtime library

I also mistakenly selected the toolchains for mingw, even though I don't have the mingw compiler (as far as I'm aware). g++, which I installed awhile ago, works fine.

What do I need to do to compile/find the library?

Upvotes: 2

Views: 2756

Answers (1)

renormalizedQuanta
renormalizedQuanta

Reputation: 300

It is because of the gcc and gfortran versions are not same, try checking that. If so, do the following

$ apt-cyg remove gcc-fortran
$ apt-cyg install gcc-fortran

Upvotes: 1

Related Questions