using gcc to build non-cygwin binaries

Dave Korn dave.korn@artimi.com
Fri Aug 5 14:07:00 GMT 2005


----Original Message----
>From: Jason Pyeron
>Sent: 05 August 2005 14:04

> Can gcc produce standard win32 dll/exe?
> 
> That is not linked to cygwin?

  Yes, use the -mno-cygwin flag (as well as -shared if building a .dll).
That will give you an .exe or .dll that is essentially a mingw application,
i.e. win32 native, and does not link against the cygwin dll or libraries at
all.

  Of course, without cygwin, you can't use any of the POSIX APIs it
implements.  You can still use the limited subset implemented in mingw
though.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list