From: "deckerben" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: Getting iostream.h to work Date: Sun, 7 Jul 2002 16:57:38 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Lines: 50 Message-ID: <3d285643$0$8334$9b622d9e@news.freenet.de> NNTP-Posting-Host: 213.6.237.128 X-Trace: 1026053700 news.freenet.de 8334 213.6.237.128 X-Complaints-To: abuse AT freenet DOT de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Origin" wrote in message news:ag9ecs$qj0$1 AT reader01 DOT singnet DOT com DOT sg... > Hi all, > How should I set up iostream.h and the associated files so that it works? We had a good discussion about this here just about three weeks ago. I an't find the thread, but I copied the important parts of it in my own notes : #include main() { double hours, wage; ... } results in: c:/djgpp/lang/cxx-v31/backward/iostream.h(31) In file included from c:/djgpp/lang/cxx-v31/backward/iostream.h:31, exer1_2.cc(1) from exer1_2.cc:1: c:/djgpp/lang/cxx-v31/backward/backward_warning.h(32) Error: 2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. There were some errors SOULTION: The C++ standard has changed slightly over the years and to get the program to compile change the header include and add the namespace line as follows:- #include using namespace std; Hope it helps, Ben