delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/28/10:57:12

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Robert McNulty Junior" <bmj2001 AT bellsouth DOT net>
To: <cygwin AT cygwin DOT com>
Subject: CFLAGS to use when making new compiler
Date: Thu, 28 Jun 2001 09:48:40 -0500
Message-ID: <NFBBLLCAOLOGENFGHINCAEOKCAAA.bmj2001@bellsouth.net>
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Importance: Normal

Suggestions are:
-mno-cygwin -D__CYGWIN__ -D__MINGW32__ -D_WIN32

After this build, I am adding a new one:
-DWIN32

Because Csound requires it.
I am also planning on adding

-DWIN32_LEAN_AND_MEAN

Suggestions for other cflags are welcome

In GCC 3.0, I noticed that when only using -D__CYGWIN__,, I did not have
access to Mingw or Win32.
So, I used (and in the process of building)
-O -D__CYGWIN__ -D__MINGW32__ -D_WIN32
I have learned just know how important CFLAGS are.
They tell the compile what headers to use.
GCC 3.0 was working correctly the whole time.
Problem was: It was not configured for Cygwin, MingW, Or Win32api.

When I get done building this one, I am going to add some more to the built
ins.

Full set will be:
-mno-cygwin -D__CYGWIN___ -D__MINGW32__ -D_WIN32 -DWIN32_LEAN_AND_MEAN

Reason I am adding -DWIN32_LEAN_AND_MEAN is in the <windows.h>

If defined, it includes some Windows stuff that we need when build a
Win32API application.

I could add one other:
-DWINVER=0x0400 which tell the computer to build a Win98 program.
I have learned a lot playing around with the switches.
I have created a customized compile to meet the needs of my machine.
Now, to get work on making it match my machine.
Then, stage two of Project Win Back will commence.




--
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/

- Raw text -


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