delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/03/30/09:00:40

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Recompiling old programs --> problems with fstream class
Date: 30 Mar 2004 13:52:50 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 17
Message-ID: <c4bu3i$8dr$1@nets3.rz.RWTH-Aachen.DE>
References: <b687bbff DOT 0403300531 DOT 2802145b AT posting DOT google DOT com>
NNTP-Posting-Host: ac3b07.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1080654770 8635 137.226.33.205 (30 Mar 2004 13:52:50 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 30 Mar 2004 13:52:50 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Chris <chris_tebbe AT yahoo DOT com> wrote:
> I cannot figure out why my old program no longer compiles under the
> current release of DJGPP (it worked with a REALLY old version).  

Your problem is that the definition of what is a valid C++ program has
changed since you wrote that code, and recent versions of GCC are now
quite picky that you follow the current definition.

Google for "using namespace std;" and you'll find lots of references
to this problem.

You'll eventually want to get an up-to-date textbook and go through
all your code to update it to ISO Standard C++.

-- 
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