Mail Archives: djgpp/2002/06/30/15:15:20
Matthew Conte wrote:
>
> "CBFalconer" <cbfalconer AT yahoo DOT com> wrote:
>
> > Results here:
> [...]
> > tl_video.h:26:1: C++ style comments are not allowed in ISO C89
> > tl_video.h:26:1: (this will be reported only once per input file)
>
> hmm, interesting. which version of gcc do you have? i'm still using
> 2.95.3, because i got slower and bigger executables when i tried using
> gcc 3.x.x.
>
> my guess is that the new preprocessor in 3.x.x is stricter than the
> one in 2.95.3.
>
> when coding in c, i use c++ style comments to comment out single lines
> of code. it's used in so few places that changing it is not a big
> deal...
>
> please remove the '-pedantic' compiler flag from the Makefile,
> rebuild, and let me know how that goes.
Did you notice the _depend part? Using 3.1.
Results without pedantic:
> [2] c:\dnld\scratch\thinlib-0.1.0>make -d all
> GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
> Built for i386-pc-msdosdjgpp
> Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
> Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
>
> Report bugs to <bug-make AT gnu DOT org>.
>
> Reading makefiles...
> Reading makefile `Makefile'...
> Reading makefile `_depend' (search path) (no ~ expansion)...
> Makefile:104: _depend: No such file or directory (ENOENT)
> Updating makefiles....
> Considering target file `_depend'.
> File `_depend' does not exist.
> Finished prerequisites of target file `_depend'.
> Must remake target `_depend'.
> Putting child 0xfcd5b678 (_depend) PID 123 on the chain.
> Live child 0xfcd5b678 (_depend) PID 123
> Reaping winning child 0xfcd5b678 PID 123
> tl_int.c:61:19: pasting "_int_handler_0" and "(" does not give a valid preproces
> sing token
> tl_int.c:62:19: pasting "_int_handler_1" and "(" does not give a valid preproces
> sing token
> tl_int.c:63:19: pasting "_int_handler_2" and "(" does not give a valid preproces
> sing token
> tl_int.c:64:19: pasting "_int_handler_3" and "(" does not give a valid preproces
> sing token
> tl_int.c:65:19: pasting "_int_handler_4" and "(" does not give a valid preproces
> sing token
> tl_int.c:66:19: pasting "_int_handler_5" and "(" does not give a valid preproces
> sing token
> tl_int.c:67:19: pasting "_int_handler_6" and "(" does not give a valid preproces
> sing token
> tl_int.c:68:19: pasting "_int_handler_7" and "(" does not give a valid preproces
> sing token
> No command name seen.
> Live child 0xfcd5b678 (_depend) PID 124
> Reaping losing child 0xfcd5b678 PID 124
> make.exe: *** [_depend] Error -1
> Removing child 0xfcd5b678 PID 124 from chain.
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
--
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 -