X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Thomas8675309 AT yahoo DOT com (Tom) Newsgroups: comp.os.msdos.djgpp Subject: Re: Newbie Allegro problems Date: 20 Nov 2003 07:08:54 -0800 Organization: http://groups.google.com Lines: 31 Message-ID: <7b68d58f.0311200708.325c05db@posting.google.com> References: <71c90d2a DOT 0311191635 DOT 1ebf4263 AT posting DOT google DOT com> NNTP-Posting-Host: 63.72.148.162 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1069340935 1715 127.0.0.1 (20 Nov 2003 15:08:55 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Thu, 20 Nov 2003 15:08:55 +0000 (UTC) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: > keri****@hotmail.com wrote: > > 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. This demonstrates a difference between gxx and gpp that I was not previously aware of. gxx, like gcc, uses the file's extension to decide whether to use the C compiler or C++ compiler. In contrast, gpp apparently ignores the file's extension and compiles it using the C++ compiler. Both gxx and gpp automatically link in the C++ standard library, while gcc does not. And, as I think Eli recently pointed out, gpp interacts better with Windows XP than gxx does. Are there other differences in expected behavior between gpp and gxx? Best regards, Tom