delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/07/02/05:00:20

From: "Filip Sielimowicz" <sielim AT wp DOT pl>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Possible bug: djdev203 + gcc 3.1, stdarg.h: va_list definition conflicts with stdio.h
Date: Tue, 2 Jul 2002 09:05:07 +0200
Organization: ASK NorthPark http://www.npnet.org
Lines: 38
Message-ID: <afrjh4$lmu$1@wulkan.npnet.org>
References: <010601c22109$e1375f80$7540b10a AT eu DOT broadcom DOT com>
NNTP-Posting-Host: inthands2.hands.com.pl
X-Trace: wulkan.npnet.org 1025593700 22238 213.195.166.210 (2 Jul 2002 07:08:20 GMT)
X-Complaints-To: usenet AT npnet DOT org
NNTP-Posting-Date: Tue, 2 Jul 2002 07:08:20 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

As far as I remember, there's some info about this bug in gcc 3.x
documentation.
See DJDIR/gnu/gcc-3.x/readme.DJGPP (or something like that, I cant check it
now).

I installed gcc 3.1 yesterday and found information about some patch in this
document
(but I haven't "patched" yet ;) )

--
Filip Sielimowicz
http://panda.bg.univ.gda.pl/~sielim

> When I compile the following two-liner (using gcc -c)
> with DJDEV203 and GCC31B installed:
>
>     #include <stdio.h>
>     #include <stdarg.h>
>
> I get an error message about 'va_list' being redefined.
>
> It is getting stdio.h from %DJDIR%/include and stdarg.h
> from the compiler-specific include directory (which has
> no stdio.h).
>
> I notice that in my Linux copy of GCC 3.1, the compiler
> comes with its own copy of stdio.h as well, which perhaps
> avoids this conflict.
>
> Please reply personally, I don't subscribe to this list.
> Please be gentle if I've missed something obvious.
>
> Thanks,
> --
> David Monksfield
>


- Raw text -


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