libstdc++/8469: Obsolete iostream.h and fstream.h?
paolo@gcc.gnu.org
paolo@gcc.gnu.org
Tue Nov 5 14:59:00 GMT 2002
Synopsis: Obsolete iostream.h and fstream.h?
Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Tue Nov 5 14:59:49 2002
Responsible-Changed-Why:
.
State-Changed-From-To: open->feedback
State-Changed-By: paolo
State-Changed-When: Tue Nov 5 14:59:49 2002
State-Changed-Why:
What do you mean exatly by "will NOT compile"?
I can successfully compile and run the following:
//////////////////////
#include <iostream.h>
int main()
{
cout << "Paolo" << endl;
}
////////////////
paolo:~> g++ paolo.cc
In file included from /usr/include/c++/3.2.1/backward/iostream.h:31,
from paolo.cc:1:
/usr/include/c++/3.2.1/backward/backward_warning.h:32: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.
paolo:~> a.out
Paolo
paolo:~>
////////////////
Could you please provide the output of g++ -v your_test.cc?
Thanks, Paolo.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8469
More information about the Gcc-bugs
mailing list