From: "Edmund Horner" Newsgroups: comp.os.msdos.djgpp References: <906tt9$k9g$1 AT sooner DOT brightok DOT net> Subject: Re: Unable to compile Allegro Example Lines: 44 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Organization: Paradise Net Message-ID: <975677037.920076@shelley.paradise.net.nz> Cache-Post-Path: shelley.paradise.net.nz!unknown AT 203-96-154-24 DOT tnt7 DOT paradise DOT net DOT nz X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Date: Sat, 2 Dec 2000 02:24:22 +1300 NNTP-Posting-Host: 203.96.152.26 X-Complaints-To: newsadmin AT xtra DOT co DOT nz X-Trace: news.xtra.co.nz 975677038 203.96.152.26 (Sat, 02 Dec 2000 02:23:58 NZDT) NNTP-Posting-Date: Sat, 02 Dec 2000 02:23:58 NZDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Try gcc instead of gpp. Just a hint, it may not work... "john smith" wrote in message news:906tt9$k9g$1 AT sooner DOT brightok DOT net... > I am having trouble compiling the example #22 that comes with the allegro > library. I simply renamed the file cube.c and used djgpp to compile. > c:\>gpp cube.c > and i received this error: > > cube.c: In function 'int main()': > cube.c: 455: no 'operator ++ (int)' declared for postfix '++', trying prefix > operator instead > cube.c: 455: no match for '++{anonymous enum} &' > > so I went to line 455 which reads > > 455 render_mode++; > > and I changed it to read: > > 455 ++render_mode; > > and recompiled > > c:\>gpp cube.c > and then I received this error: > > cube.c: In function 'int main()': > cube.c: 455: no match for '++{anonymous enum} &' > > any ideas what i can do to get rid of this last error? > I am new to graphics programming and If i can't get the sample to compile I > will never be able to learn to do this on my own? > > Thanks for the help, > > fox > > >