Mail Archives: djgpp/2002/04/06/01:50:11
> From: "deckerben" <deckerben AT freenet DOT de>
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 5 Apr 2002 23:30:45 +0200
> In file included from tparam.c:29:
> d:/user/djgpp/include/string.h:55: parse error before '(' token
> d:/user/djgpp/include/string.h:55: parse error before "const"
> make.exe: *** [tparam.o] Error 1
> I examined the makefile and removed ONLY the DEFS
> declaration -DSTDC_HEADERS=1
> The library then compiled completely without appearant problems.
> Is this declaration always incompatible with DJGPP?
There's nothing wrong with defining STANDARD_HEADERS, it's fully
compatible with DJGPP.
If you look at string.h, line 55, you will see that this line declares
a prototype for the function `index'. I'm guessing that when
STANDARD_HEADERS is defined, termcap's sources also define `index' to
something else, and that something causes the compiler to barf.
If my guess is correct, the problem is not STANDARD_HEADERS, but the
definition of `index' in termcap.
- Raw text -