 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
tt Guest
|
Posted: Wed Aug 25, 2004 6:15 pm Post subject: please help me figure out |
|
|
# 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.
|
|
| Back to top |
|
 |
Alf P. Steinbach Guest
|
Posted: Wed Aug 25, 2004 6:18 pm Post subject: Re: please help me figure out |
|
|
* tt:
| Quote: | # 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?
|
|
| Back to top |
|
 |
Junior Guest
|
Posted: Thu Aug 26, 2004 2:57 am Post subject: Re: please help me figure out |
|
|
namespace issue, instead of the old <iostream.h> do:
#include <iostream>
using namespace std;
..
<code continues>
"tt" <sheilazou (AT) yahoo (DOT) com> wrote
| Quote: | # 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.
|
|
|
| Back to top |
|
 |
Karthiik Kumar Guest
|
Posted: Sat Aug 28, 2004 5:22 am Post subject: Re: please help me figure out |
|
|
tt wrote:
| Quote: | # 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
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|