Mail Archives: djgpp/2002/06/21/21:15:20
From: | Randy Hunt <randy DOT hunt AT erols DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | C++ and IOSTEAM.H
|
Date: | Fri, 21 Jun 2002 21:15:00 -0400
|
Lines: | 45
|
Message-ID: | <3D13CF94.C35B866E@erols.com>
|
Mime-Version: | 1.0
|
X-Trace: | UmFuZG9tSVb56S8bk+7bKvttduiNF+DrAH88IiNpCpX81VyJcYplOI7suwbRTEFe
|
X-Complaints-To: | abuse AT rcn DOT com
|
NNTP-Posting-Date: | 22 Jun 2002 01:12:03 GMT
|
X-Mailer: | Mozilla 4.78 [en]C-CCK-MCD {STARPOWER} (Win98; U)
|
X-Accept-Language: | en
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Help. I have downloaded and installed the latest djgpp software and am
having a problem with a simple c++ program and iostream.h. I have a
Pentium II running Windows 98. The code, written and compiled using
rhide, is as follows:
#include <iostream.h>
main()
{
double hours, wage;
cout << "Enter hours worked: ";
cin >> hours;
cout << "Enter wage per hour: ";
cin >> wage;
cout << "Pay is: $" << wage * hours;
return 0;
}
The following errors are displayed:
Compiling: c:/djgpp/bin/exer1_2.cc
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
I remember reading something about c++ header files, but I can't
remember in which document.
Can someone please please point me in the right direction to find the
answer to this problem.
Thanks.
- Raw text -