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 From: "Jon Leichter" To: "Jonathan Wilson" Cc: Subject: RE: cygqwin with mingw32 question Date: Fri, 29 Mar 2002 08:01:29 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: <3CA4567E.5080802@tpgi.com.au> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Jonathan, I have to admit that I don't quite understand your original question either. However, it seems like you're interested in understanding some of the internals of Cygwin's gcc and the -mno-cygwin switch. First of all, a quick response: when you specify -mno-cygwin to the compiler, __CYGWIN__ is NOT defined. Rather, __MINGW32__ is defined. In the past, I made contributions to OpenLDAP so that it would build as MinGW binaries with Cygwin gcc. As part of this contribution, I wrote a detailed document on Cygwin, MinGW, and the internals of how they relate to each other. You can read this document on OpenLDAP's web site: http://www.openldap.org/faq/data/cache/301.html I don't vouch for its accurracy. I last updated it in December, but you know how quickly software changes. Also, the content is based purely on my experience as a user and not a developer of Cygwin. So there may be things I'm wrong about. Nevertheless, it's fairly comprehensive. I hope this helps... Jon > -----Original Message----- > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf > Of Jonathan Wilson > Sent: Friday, March 29, 2002 3:57 AM > To: cygwin AT cygwin DOT com > Subject: Re: cygqwin with mingw32 question > > I did see that but what I dont understand is if __CYGWIN__ is defined > when -mno-cygwin is selected. > I also need to know if cygwin GCC defines some specific flag that I can > test for that identifies it as GCC. > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/