Mail Archives: djgpp/2002/07/07/11:16:20
"Origin" <mathman AT singnet DOT com DOT sg> 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
<start-cut-and-paste/>:
#include <iostream.h>
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 <X>
header for the <X.h> header for C++ includes, or <sstream> instead of
the deprecated header <strstream.h>. 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 <iostream>
using namespace std;
Hope it helps,
Ben
- Raw text -