delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/06/03/02:26:52

Date: Mon, 3 Jun 2002 09:26:36 +0300 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
X-Sender: pavenis AT ieva06
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Cc: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>, djgpp-workers AT delorie DOT com
Subject: Re: DJGPP CVS & gcc 3.1 [patch included]
In-Reply-To: <2927-Sun02Jun2002194327+0300-eliz@is.elta.co.il>
Message-ID: <Pine.A41.4.05.10206030924070.39856-100000@ieva06>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com


On Sun, 2 Jun 2002, Eli Zaretskii wrote:

> > Date: Sun, 02 Jun 2002 13:54:27 +0100
> > From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
> > 
> > bash-2.04$ make all
> > gcc -g mkdoc.cc -lstdcxx -o ../../hostbin/mkdoc.exe
> > In file included from mkdoc.cc:14:
> > c:/djgpp/lib/gcc-lib/djgpp/3.1/include/stdarg.h:110: conflicting types for `
> >    typedef char*va_list'
> > c:/djgpp/include/stdio.h:35: previous declaration as `typedef void*va_list'
> > make.exe: *** [../../hostbin/mkdoc.exe] Error 1
> > bash-2.04$ gcc -g mkdoc.cc -lstdcxx -o ../../hostbin/mkdoc.exe
> > In file included from mkdoc.cc:14:
> > c:/djgpp/lib/gcc-lib/djgpp/3.1/include/stdarg.h:110: conflicting types for `
> >    typedef char*va_list'
> > c:/djgpp/include/stdio.h:35: previous declaration as `typedef void*va_list'
> > bash-2.04$ gcc -g -Wno-error mkdoc.cc -lstdcxx -o ../../hostbin/mkdoc.exe
> > In file included from mkdoc.cc:14:
> > c:/djgpp/lib/gcc-lib/djgpp/3.1/include/stdarg.h:110: conflicting types for `
> >    typedef char*va_list'
> > c:/djgpp/include/stdio.h:35: previous declaration as `typedef void*va_list'
> > 
> > So I think the only way is to copy sys/djtypes.h from CVS to the DJGPP
> > installation.
> 
> No, I think we should rather do something inside mkdoc.cc to avoid the
> error.  For example, we could copy the relevant parts of stdio.h into
> mkdoc.cc instead if including stdio.h.  Ugly, but effective and robust.
> 

mkdoc.cc should be build with host environment when cross-buildinng 
DJGPP libc, for example under Linux. Of course we can put something like

#ifdef __DJGPP__

... needed stuff from stdio.h

#else
#include <stdio.h>
#endif

there

Andris

 



- Raw text -


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