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

狂风中的少年 提交于 2019-12-22 14:47:31

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/35512104/installing-gfortran-in-cygwin-gfortran-cyglto-plugin-dll-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!