delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | keri5678 AT hotmail DOT com (Keri) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Newbie Allegro problems |
Date: | 19 Nov 2003 16:35:59 -0800 |
Organization: | http://groups.google.com |
Lines: | 20 |
Message-ID: | <71c90d2a.0311191635.1ebf4263@posting.google.com> |
NNTP-Posting-Host: | 24.239.52.132 |
X-Trace: | posting.google.com 1069288559 8752 127.0.0.1 (20 Nov 2003 00:35:59 GMT) |
X-Complaints-To: | groups-abuse AT google DOT com |
NNTP-Posting-Date: | Thu, 20 Nov 2003 00:35:59 +0000 (UTC) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
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*' exsprite.c:117: error: invalid conversion from `void*' to `BITMAP*' exsprite.c:127: error: invalid conversion from `void*' to `BITMAP*' exsprite.c:137: error: invalid conversion from `void*' to `BITMAP*' exsprite.c:147: error: invalid conversion from `void*' to `BITMAP*' exsprite.c:160: error: invalid conversion from `void*' to `BITMAP*' exsprite.c:174: error: invalid conversion from `void*' to `BITMAP*' I'm assuming that the example files should not have any errors. Also since I did not modify it at all I'm guessing that it is something other than the code. I'm fairly new to C++ so any help at all getting this example program to work would be greatly appreciated. I have had no problems compiling any other of the example programs supplied with Allegro.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |