From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro Warnings? Date: Tue, 18 Feb 1997 10:19:26 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 24 Message-ID: <3309F2AE.4918@cs.com> References: <8a2_9702181929 AT softtech DOT brisnet DOT org DOT au> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp104.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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...| ---------------------------------------------------------------------