This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: WIN32 symbol on cygwin


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]