From: Richard Dawe Newsgroups: comp.os.msdos.djgpp Subject: Re: gcc 3.1: conflict between stdio.h and stdarg.h Date: Fri, 14 Jun 2002 10:49:54 +0100 Lines: 35 Message-ID: <3D09BC42.2D0DB037@phekda.freeserve.co.uk> References: <92D6AAE888CED411A16A00508BB0B827028FCCD5 AT ecntex DOT ecn DOT nl> NNTP-Posting-Host: modem-87.dexfenfluramine.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newsg4.svr.pol.co.uk 1024048289 29007 62.136.89.215 (14 Jun 2002 09:51:29 GMT) NNTP-Posting-Date: 14 Jun 2002 09:51:29 GMT X-Complaints-To: abuse AT theplanet DOT net X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586) X-Accept-Language: de,fr To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello. "Burgers, A.R." wrote: > consider the following two-line file: > > bash-2.04$ cat zz.c > #include > #include > > This compiles fine with gcc 2.95-3. > Compiling it with gcc 3.1 gives the following error: > > bash-2.04$ gcc -c zz.c > In file included from zz.c:2: > c:/djgpp/lib/gcc-lib/djgpp/3.1/include/stdarg.h:110: conflicting types for > `va_list' > c:/djgpp/include/stdio.h:35: previous declaration of `va_list' You need to patch the include file , to use gcc's built-in va_list handling. I've placed a patch here: http://www.phekda.freeserve.co.uk/richdawe/djgpp/misc/djtypes.h.diff I diff'd against djtypes.h from CVS a week or so ago, so it's not quite the latest, but it should still work. (The only thing that has changed is one of the comments.) Apply like so: patch -i /path/to/djtypes.h.diff /dev/env/DJDIR/include/sys/djtypes.h Regards, -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]