delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/30/20:22:18

From: "john smith" <jsmith AT msnd DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Unable to compile Allegro Example
Date: Thu, 30 Nov 2000 19:12:33 -0600
Organization: BrightNet OKlahoma UseNet Server
Lines: 36
Message-ID: <906tt9$k9g$1@sooner.brightok.net>
NNTP-Posting-Host: ada1p23.cld.brightok.net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019