Mail Archives: djgpp/1997/02/18/12:33:34
Ron T Lewis wrote:
>
> Allegro.h (lineNo.?) Ansi C forbids zero-size array 'line'
> Allegro.h (lineNos????) Ansi Does not permit the keyword 'inline'
> Allegro.h (lineNos????) Ansi Does not permit the keyword 'asm'
> Allegro.h (lineNos?) Ansi C forbids zero-size array 'dat'
>
> Have I missed something in my installation of the new compiler and/or
> Allegro or am I simply doing something wrong??
Your program's makefile obviously passes the '--ansi' and/or
'--pedantic' switches to gcc, causing it to complain about the above
things. Those switches force gcc into strict ANSI compliance mode, and
ANSI doesn't recognize the 'inline' and 'asm' keywords, nor does it
allow zero-sized arrays.
Solution: remove those switches from the gcc command line.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| Descent 2: The Infinite Abyss - The greatest Internet game of all |
| time just got better! This time, you're going all the way down...|
---------------------------------------------------------------------
- Raw text -