WIN32 symbol on cygwin
Larry Hall
lh-no-personal-replies-please@cygwin.com
Tue Mar 15 03:00:00 GMT 2005
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/
More information about the Cygwin
mailing list