How to fix mno cygwin error?

I am working on building 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 this does not necessarily look like the same problem, and I don’t understand how to downgrade my system to GCC (or Make), which supports the flag that I need to use for compilation.

Can someone try to point me in the right direction or if you encounter this problem, suggest a solution?

I am running Windows 8.1 pro, GCC 5.4.0, doing 4.2.1. I can post more information if necessary to help me.

+12
source share
1 answer

The current GCC Cygwin is compiled only for Cygwin itself.

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

The switch has been removed a long time ago and real cross-compilers

mingw64-x86_64-NKU-core
mingw64-i686-NKU-core
Cygwin-mingw

were made available

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

+10
source

Source: https://habr.com/ru/post/1262111/


All Articles