delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/24/15:16:22

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C++ errors involving installing interrupt callback procedures.
Date: 24 May 2000 19:15:41 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 19
Message-ID: <8gh9ot$4s2$1@nets3.rz.RWTH-Aachen.DE>
References: <8gh91t$n4a$12$1 AT news DOT t-online DOT com>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 959195741 4994 137.226.32.75 (24 May 2000 19:15:41 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 24 May 2000 19:15:41 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Raul Carolus <carolura AT luther DOT edu> wrote:

> I compiled an example program written in C with the above function, and it
> did fine, but when i renamed the file to compile in C++, it died.

That's to be expected, from time to time. People keep stating that C++
was a superset of C, so any decent C program can be compiled by a C++
compiler without problems. But that simply is not true.

The error message you showed

> ANSI C++ forbids redefinition of () to (...)

looks like a typical candidate for this type of small, but noticeable
discrepancy. Go figure where that (...) came from.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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