delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/11/20/01:10:28

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: 20 Nov 2003 08:11:13 +0200
Message-Id: <uekw3in7i.fsf@elta.co.il>
From: Eli Zaretskii <eliz AT elta DOT co DOT il>
To: djgpp AT delorie DOT com
In-reply-to: <71c90d2a.0311191635.1ebf4263@posting.google.com>
(keri5678 AT hotmail DOT com)
Subject: Re: Newbie Allegro problems
References: <71c90d2a DOT 0311191635 DOT 1ebf4263 AT posting DOT google DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: keri5678 AT hotmail DOT com (Keri)
> Newsgroups: comp.os.msdos.djgpp
> Date: 19 Nov 2003 16:35:59 -0800
> 
> I am trying to teach myself sprite usage by looking at the example
> file exsprite.c but I cannot even get the file to compile as it came
> with Allegro.  GPP gives me the following errors:
> 
> C:\DJGPP\allegro\examples>gpp exsprite.c -o exsprite.exe -lalleg
> exsprite.c: In function `int main(int, char**)':
> exsprite.c:100: error: invalid conversion from `void*' to `const RGB*'

Since exsprite.c has a `.c' extension, it's probably a C program, not
a C++ program.  So why did you use gpp to compile it?  Please try
using gcc instead, and see if that helps.

- Raw text -


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