问题描述
我正在使用GCC和Make在Windows中编译一个库.运行make
时,出现以下错误:
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'
我看到了这在SO上发布,但不一定看起来像是同一问题,而且我不了解如何将系统降级到支持我需要按顺序使用的标志的GCC(或Make)版本进行编译.
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?
我正在运行Windows 8.1 pro,GCC 5.4.0,make 4.2.1.如果有必要帮助我,我可以发布更多信息.
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.
推荐答案
当前cygwin gcc仅针对cygwin本身进行编译.
The current cygwin gcc compiles only for cygwin itself.
-mno-cygwin
是gcc 3.x以来的过时标志,允许cygwin编译器编译mingw(而非cygwin)程序.
-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
mingw64-x86_64-gcc-core
mingw64-i686-gcc-core
cygwin-mingw
可用
最新更新:
https://sourceware.org/ml/cygwin-announce/2016- 11/msg00020.html
Latest update:
https://sourceware.org/ml/cygwin-announce/2016-11/msg00020.html
这篇关于如何纠正mno cygwin错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!