By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,227 Members | 1,376 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,227 IT Pros & Developers. It's quick & easy.

please help me figure out

P: n/a
tt
# g++ cdr0frprep.cpp
In file included from /usr/local/include/c++/3.2.3/backward/strstream:51,
from /usr/local/include/c++/3.2.3/backward/strstream.h:33,
from cdr0frprep.cpp:5:
/usr/local/include/c++/3.2.3/backward/backward_warning.h:32:2: warning:
#warning
This file includes at least one deprecated or antiquated header. Please
conside
r using one of the 32 headers found in section 17.4.1.2 of the C++ standard.
Exa
mples 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 wa
rning use -Wno-deprecated.
Jul 22 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
* tt:
# g++ cdr0frprep.cpp
In file included from /usr/local/include/c++/3.2.3/backward/strstream:51,
from /usr/local/include/c++/3.2.3/backward/strstream.h:33,
from cdr0frprep.cpp:5:
/usr/local/include/c++/3.2.3/backward/backward_warning.h:32:2: warning:
#warning
This file includes at least one deprecated or antiquated header. Please
conside
r using one of the 32 headers found in section 17.4.1.2 of the C++ standard.
Exa
mples 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 wa
rning use -Wno-deprecated.


You're using a pre-standard header. Use the standard header instead. See
the examples given in the warning.
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Jul 22 '05 #2

P: n/a
namespace issue, instead of the old <iostream.h> do:

#include <iostream>
using namespace std;
..
<code continues>
"tt" <sh*******@yahoo.com> wrote in message
news:e5**************************@posting.google.c om...
# g++ cdr0frprep.cpp
In file included from /usr/local/include/c++/3.2.3/backward/strstream:51,
from /usr/local/include/c++/3.2.3/backward/strstream.h:33, from cdr0frprep.cpp:5:
/usr/local/include/c++/3.2.3/backward/backward_warning.h:32:2: warning:
#warning
This file includes at least one deprecated or antiquated header. Please
conside
r using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Exa
mples 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 wa
rning use -Wno-deprecated.

Jul 22 '05 #3

P: n/a
tt wrote:
# g++ cdr0frprep.cpp
In file included from /usr/local/include/c++/3.2.3/backward/strstream:51,
from /usr/local/include/c++/3.2.3/backward/strstream.h:33,
from cdr0frprep.cpp:5:
/usr/local/include/c++/3.2.3/backward/backward_warning.h:32:2: warning:
#warning
This file includes at least one deprecated or antiquated header. Please
conside
r using one of the 32 headers found in section 17.4.1.2 of the C++ standard.
Exa
mples 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 wa
rning use -Wno-deprecated.


Unless we see what is there in cdr0...cpp , it would be really
difficult to say what is happening.
But you can fix the problem by correlating the function calls in line
32 as pointed to by the compiler and the relevant header files to be
included.

--
Karthik
Jul 22 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.