Thread: c++ error

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    36

    c++ error

    CAN ANYONE HELP ME TO UNDERSTAND THIS ERROR AND HOW TO SOLVE IT:I AM USING RED HAT 9



    gcc -g -I../include -c phoenix.cc
    In file included from /usr/include/c++/3.2.2/backward/iostream.h:31,
    from ../include/general.h:15,
    from ../include/phoenix.h:12,
    from phoenix.cc:10:
    /usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning: #warning This
    file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples
    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 warning
    use -Wno-deprecated.



    THANX

  2. #2
    Registered User
    Join Date
    Jul 2004
    Posts
    98
    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 warning
    correct like this :
    Code:
    #include <iostream>        //instead of <iostream.h> 
    using namespace std;     //add this.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > CAN ANYONE HELP ME TO UNDERSTAND THIS ERROR AND HOW TO SOLVE IT:I AM USING RED HAT 9
    Well you can stop shouting at us
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  3. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM