www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/23/12:48:22

From: Ian Miller <itmiller AT dera DOT gov DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: d_button_proc - errors in C++, but not C?
Date: 23 Feb 2000 14:11:37 +0000
Organization: Defence Evaluation & Research Agency
Lines: 20
Message-ID: <87zossf1pi.fsf@hasn.dera.gov.uk>
References: <77 DOT 1b59be2 DOT 25e49eec AT aol DOT com>
NNTP-Posting-Host: 146.80.115.106
X-Newsreader: Gnus v5.7/Emacs 20.4
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Riddler02 AT aol DOT com writes:

> runs perfectly.  However, if I change its name to EX13.CPP (or anything.cpp 
> for that matter), I get the following error at every occurrence of the 
> d_button_proc function when I try to compile:

:)

That's because it's written in C not in C++.
One *can* write code to compile under both languages,
but this Allegro example evidently has not been written that way.

It's not strange, it's just not C++.

Regards,
Ian
-- 
Ian Miller, Dorset, UK
The views expressed above are those of the writer and do not represent the
views, policy, or understanding of any other person or official body.

- Raw text -


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