how to remedy mno cygwin error?

▼魔方 西西 提交于 2019-12-04 18:45:51

问题


I'm working on compiling a library in windows with GCC and Make. When I run make, I get the following error:

unrecognized command line option '-mno-cygwin'

I saw this post on SO, but it doesn't necessarily seem like the same issue, and I don't understand how to downgrade my system to a version of GCC (or Make) that supports the flag I need to use in order to compile.

Could someone please try to point me in the right direction, or if you've run into this problem offer a solution?

I'm running Windows 8.1 pro, GCC 5.4.0, make 4.2.1. I can post more info if it is necessary to help me.


回答1:


The current cygwin gcc compiles only for cygwin itself.

-mno-cygwin is an obsolete flag from gcc 3.x time that allowed the cygwin compiler to compile mingw (not cygwin) programs.

The switch was removed long time ago and true cross compilers

mingw64-x86_64-gcc-core
mingw64-i686-gcc-core
cygwin-mingw

were made available

Latest update:
https://sourceware.org/ml/cygwin-announce/2016-11/msg00020.html



来源:https://stackoverflow.com/questions/41404950/how-to-remedy-mno-cygwin-error

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