please help me figure out

Discussion in 'C++' started by tt, Aug 25, 2004.

  1. tt

    tt Guest

    # 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.
    tt, Aug 25, 2004
    #1
    1. Advertising

  2. * 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?
    Alf P. Steinbach, Aug 25, 2004
    #2
    1. Advertising

  3. tt

    Junior Guest

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

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


    "tt" <> wrote in message
    news:...
    > # 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.
    Junior, Aug 26, 2004
    #3
  4. 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
    Karthiik Kumar, Aug 28, 2004
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chad A. Beckner

    Please Help! Can't figure this out...

    Chad A. Beckner, Jun 18, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    391
    bloomfield
    Jun 21, 2004
  2. partybob99
    Replies:
    3
    Views:
    295
    Gary Labowitz
    Oct 17, 2003
  3. johny
    Replies:
    5
    Views:
    404
    Karl Heinz Buchegger
    Apr 14, 2005
  4. pbd22
    Replies:
    1
    Views:
    1,338
    pbd22
    Jan 8, 2007
  5. Charlie White

    I can't figure this regex out, Help please.

    Charlie White, Jan 17, 2007, in forum: Perl Misc
    Replies:
    4
    Views:
    65
    J├╝rgen Exner
    Jan 17, 2007
Loading...

Share This Page