Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 , cygwin AT cygwin DOT com From: Larry Hall 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 Content-Type: text/plain; charset="us-ascii" 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/