delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/02/09/11:02:38

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
Reply-To: <nhv AT cape DOT com>
From: "Norman Vine" <nhv AT cape DOT com>
To: "'Jason Tishler'" <Jason DOT Tishler AT dothill DOT com>
Cc: <cygwin-apps AT sources DOT redhat DOT com>
Subject: RE: Cygwin Problem
Date: Fri, 9 Feb 2001 11:01:01 -0500
Message-ID: <000401c092b1$80db5b60$a300a8c0@nhv>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2232.26
In-Reply-To: <20010209104000.E980@dothill.com>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Importance: Normal

Jason Tishler writes:
>
>On Fri, Feb 09, 2001 at 10:06:05AM -0500, Norman Vine wrote:
>> It seems as if the newest stuff does not -D_WIN32 like it used to.
>> 
>> Chris warned that this would cause lot's of things to break.
>> 
>> I had to add a -mwin32 to all the gcc flags to get Python to compile.
>> 
>> I am not sure that this is the best way because -mwin32 may do more
>> then we want.  -mwin32 is also only in the latest gcc ( 2.95.2.7 )
>> 
>> Any suggestions
>
>Unfortunately, I believe that the right solution is to do as Chuck did
>in the following (see the first paragraph):
>
>    http://sources.redhat.com/ml/cygwin/2001-02/msg00244.html
>

I do not think that this is the same problem 
Hopefully this dumb example will illustrate my point better 

Cheers

Norman Vine


/* jnk.c -- -mwin32 switch test
$ gcc -DWIN32 jnk.c
jnk.c:1: windows.h: No such file or directory

$ gcc -mwindows jnk.c
jnk.c:1: windows.h: No such file or directory

$ gcc -mwin32 jnk.c
$ a
A dumb test
*/

#include <windows.h>

int main(int argc, char **argv)
{
	printf("A dumb test\n");
	return 0;
}

- Raw text -


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