delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/22/19:18:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <3DDEC952.3010308@equator.com>
Date: Fri, 22 Nov 2002 16:18:26 -0800
From: Nitin Gupta <gupta AT equator DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Vijay Sampath <vsampath AT valosystems DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: -DDATE start giving error with gcc-3.2.3
References: <D8BB1D1FB113524E95EEF65D595C89BF133EBF AT CORVAIR DOT valosystems DOT com>

Yeah, I will change the code. My idea was that some one will see the 
difference in preprocessed file using
gcc -E -dD foo.c -DDATE="Wed Nov"


Vijay Sampath wrote:

> This isn't the original program you posted to the list.
>
>     -----Original Message-----
>     From: Nitin Gupta [mailto:gupta AT equator DOT com]
>     Sent: Friday, November 22, 2002 4:13 PM
>     To: Vijay Sampath
>     Cc: cygwin AT cygwin DOT com
>     Subject: Re: -DDATE start giving error with gcc-3.2.3
>
>     Try on latest cygwin.
>     gcc-2.exe foo.c -DDATE="Wed Nov"
>     (gcc-2 is gcc 2.95)
>     and
>     gcc.exe foo.c -DDATE="Wed Nov"
>     (gcc is gcc 3.2)
>
>     where foo.c is
>
>#include <w32api/windows.h>
>#include <stdio.h>
>
>main(){
>
>printf ("Hello World!\n");
>}
>    
>
>
>
>
>     Vijay Sampath wrote:
>
>>I'll be very surprised if your program compiles under any C compiler on
>>Earth.
>>
>>-Vijay
>>
>>  
>>
>>>-----Original Message-----
>>>From: Nitin Gupta [mailto:gupta AT equator DOT com] 
>>>Sent: Friday, November 22, 2002 3:23 PM
>>>To: cygwin AT cygwin DOT com
>>>Subject: -DDATE start giving error with gcc-3.2.3
>>>
>>>
>>>Hi,
>>>
>>>If I compiled following code with -DDATE="Wed Nov 22", it 
>>>compiled fine 
>>>using gcc-2.95, but when I updated my cygwin recently, it gives parse 
>>>errors using gcc-3.2.3 (which, I think it should)
>>>
>>>#include <w32api/windows.h>
>>>#include <stdio.h>
>>>typedef double DATE;
>>>main(){
>>>
>>>printf ("Hello World!\n");
>>>}
>>>
>>>Looks like wtypes.h also has DATE defined. But, it should 
>>>have given me 
>>>error earlier also, as wtypes had this definition earlier also.
>>>
>>>Was this a gcc bug that got fixed in gcc-3.2.3? or is there 
>>>anything else
>>>
>>>Thanks,
>>>Nitin
>>>
>>>
>>>
>>>--
>>>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/

- Raw text -


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