This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: WIN32 symbol on cygwin
- From: Larry Hall <lh-no-personal-replies-please at cygwin dot com>
- To: Won-Ki Jeong <graphor at gmail dot com>, cygwin at cygwin dot com
- Date: Mon, 14 Mar 2005 15:18:32 -0500
- Subject: Re: WIN32 symbol on cygwin
- References: <6c838620503141033535ec72e@mail.gmail.com>
- Reply-to: Cygwin List <cygwin at cygwin dot com>
At 01:33 PM 3/14/2005, you wrote:
>Hi.. I am using cygwin on WinXP. How can I use WIN32 symbol (or
>simething similar)? Because I use gcc, WIN32 symbol is not defined.
>Thanks!
You need to be more specific about what you're trying to do. If you're
using Cygwin's gcc, it's unlikely that you want to define 'WIN32'. If you
think this is what you want, you most likely want to use 'gcc -mno-cygwin',
which essentially gets you the same thing as you would get from using gcc
as offered by Mingw (www.mingw.org). This will define 'WIN32' by default.
It will also not link in 'cygwin1.dll' so you will loose POSIX compatibility.
If you *must* define 'WIN32' but still use Cygwin's gcc without
'-mno-cygwin', then define it on the command line to gcc, just like any other
symbol you'd define at compile time.
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
838 Washington Street (508) 893-9889 - FAX
Holliston, MA 01746
--
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/