On Thu, 6 Feb 2003, Mr O wrote:
>I get this output while compiling some programs on my Gentoo box
>and I don't know what to do :( Anybody able to at least give me
>a little background on what's happening and/or what I might be
>able to do to fix it?
>
>/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include/g++-v3/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.
>
>(this instance happened while compiling 'flightgear')
Short, flip answer: This means pretty much exactly what it sounds like.
More serious explanation: Obviously you're trying to compile a C++ program.
C++ isn't my main programming language, so I'm not very familiar with its
evolution, but it HAS evolved in the not-too-distant past, and part of that
evolution has been changes in the standard headers files. Where the
previous generation of C++ programs would have said (for example),
#include <iostream.h>
apparently newer, hipper, cooler programs are supposed to say,
#include <iostream>
So what you have is a piece of software that uses the older no-longer-in-
style headers, and the compiler is trying to encourage the program author
to switch to the newer style.
As for what you should do to fix it, probably nothing. It's only a
warning, and not a particularly severe one. Just ignore it, and you should
still get a working executable.
- Neil Parker
_______________________________________________
Eug-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug