X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker 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: References: 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 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.