delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/30/19:45:18

Message-ID: <3D1F92B1.25C99F8B@yahoo.com>
From: CBFalconer <cbfalconer AT yahoo DOT com>
Organization: Ched Research
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ANNOUCE: thinlib directmedia library for djgpp 0.1.0
References: <gFET8.85210$GY DOT 30183237 AT twister DOT nyroc DOT rr DOT com> <3D1F21E6 DOT E85FBF68 AT yahoo DOT com> <UIFT8.73552$uk2 DOT 29713705 AT twister DOT nyroc DOT rr DOT com> <3D1F54ED DOT D798D177 AT yahoo DOT com> <3D1F5EC7 DOT 1486F10D AT phekda DOT freeserve DOT co DOT uk>
Lines: 52
Date: Sun, 30 Jun 2002 23:37:46 GMT
NNTP-Posting-Host: 12.90.173.174
X-Complaints-To: abuse AT worldnet DOT att DOT net
X-Trace: bgtnsc04-news.ops.worldnet.att.net 1025480266 12.90.173.174 (Sun, 30 Jun 2002 23:37:46 GMT)
NNTP-Posting-Date: Sun, 30 Jun 2002 23:37:46 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Richard Dawe wrote:
> CBFalconer wrote:
> [snip]
> > Results without pedantic:
> [snip]
> > > tl_int.c:61:19: pasting "_int_handler_0" and "(" does not give a valid preproces
> > > sing token
> [snip]
> 
> You probably have something like:
> 
> #define macro(x) _int_handler_##x##(...)
> 
> The second concatenation operator is superfluous. Change it to something like
> this:
> 
> #define macro(x) _int_handler_##x(...)
> 
> >
> > and it created _depend file as follows:
> >
> > > [1] c:\dnld\scratch\thinlib-0.1.0>type _depend
> > > "# dependency file"
> > > tl_main.o: tl_main.c c:/djgpp/lib/gcc-lib/djgpp/3.1/djgpp.ver tl_types.h \
> > >   thinlib.h tl_djgpp.h tl_int.h tl_timer.h tl_event.h tl_key.h tl_mouse.h \
> > >   tl_joy.h tl_dpp.h tl_drv.h tl_audio.h tl_video.h
> > > tl_print.o: tl_print.c c:/djgpp/lib/gcc-lib/djgpp/3.1/djgpp.ver \
> > >   tl_types.h tl_print.h
> > > tl_timer.o: tl_timer.c c:/djgpp/lib/gcc-lib/djgpp/3.1/djgpp.ver \
> > >   tl_types.h tl_djgpp.h tl_timer.h tl_int.h
> 
> The pre-processor behaviour has changed slightly in gcc 3.x. What flags are
> used to generate the dependencies?

After doing that in tl_int.c, and then manually removing the
quotes around "#dependency file" in the created _depend, we get
the following:

> [1] c:\dnld\scratch\thinlib-0.1.0>make  all
> gcc -W -Wall -Werror -O3 -fomit-frame-pointer -ffast-math -o tl_print.o -c tl_pr
> int.c
> In file included from tl_print.c:14:
> c:/djgpp/lib/gcc-lib/djgpp/3.1/include/stdarg.h:110: conflicting types for `va_l
> ist'
> c:/djgpp/include/stdio.h:35: previous declaration of `va_list'
> make.exe: *** [tl_print.o] Error 1

-- 
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!

- Raw text -


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