delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/14/15:26:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.2.0.14.0.20050314151330.04c50e08@pop.prospeed.net>
Date: Mon, 14 Mar 2005 15:18:32 -0500
To: Won-Ki Jeong <graphor AT gmail DOT com>, cygwin AT cygwin DOT com
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: WIN32 symbol on cygwin
In-Reply-To: <6c838620503141033535ec72e@mail.gmail.com>
References: <6c838620503141033535ec72e AT mail DOT gmail DOT com>
Mime-Version: 1.0

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019