LWN.net Logo

Cygwin can not do this!

Cygwin can not do this!

Posted Nov 19, 2008 21:19 UTC (Wed) by khim (subscriber, #9252)
In reply to: Cygwin by zeekec
Parent article: MinGW and why Linux users should care

Cygwin can create native Window executables that don't use the compatibility layer.

Nope. There are no way.

I believe that it actually uses MinGW.

Yes, you can run MinGW under Cygwin as well and so it's possible to create native execulables this way. But... what's the point? You can run MinGW under Linux directly without WINE/Cygwin overhead!


(Log in to post comments)

Cygwin can do this!

Posted Nov 20, 2008 18:02 UTC (Thu) by zooko (subscriber, #2589) [Link]

Yes, it can. The cygwin gcc compiler accepts an option named "-mno-cygwin". If you pass that option, then it produces a normal Win32 executable which does not require cygwin1.dll.

Here is a HOWTO on how to use it, written in 1999:

http://www.delorie.com/howto/cygwin/mno-cygwin-howto.html

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds