C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

please help me figure out

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
tt
Guest





PostPosted: Wed Aug 25, 2004 6:15 pm    Post subject: please help me figure out Reply with 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
Alf P. Steinbach
Guest





PostPosted: Wed Aug 25, 2004 6:18 pm    Post subject: Re: please help me figure out Reply with quote



* 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





PostPosted: Thu Aug 26, 2004 2:57 am    Post subject: Re: please help me figure out Reply with quote



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





PostPosted: Sat Aug 28, 2004 5:22 am    Post subject: Re: please help me figure out Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.