please help me figure out

T

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.
 
A

Alf P. Steinbach

* 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.
 
J

Junior

namespace issue, instead of the old <iostream.h> do:

#include <iostream>
using namespace std;
..
<code continues>
 
K

Karthiik Kumar

tt said:
# 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top