Having trouble compiling a C++ file? I had problems with the message: "/usr/include/c++/3.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 header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated." I figured out how to fix this: Got rid of ".h" from C++ includes. Added "using namespace std;" Script started on Mon Feb 24 12:01:51 2003 [mweeks@mymachine ~]$ cat hello.cc /* * Hello World. Demonstration by Michael Weeks * 2/23/03 - this program does not compile cleanly anymore! */ #include int main() { cout << "Hello World." << endl; return 0; } [mweeks@mymachine ~]$ g++ hello.cc -o hello In file included from /usr/include/c++/3.2/backward/iostream.h:31, from hello.cc:5: /usr/include/c++/3.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 header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. [mweeks@mymachine ~]$ cat hello2.cc /* * Hello World. Demonstration by Michael Weeks * 2/23/03 - this program DOES compile cleanly. */ #include using namespace std; int main() { cout << "Hello World." << endl; return 0; } [mweeks@mymachine ~]$ g++ hello2.cc -o hello2 [mweeks@mymachine ~]$ ./hello2 Hello World. [mweeks@mymachine ~]$ exit Script done on Mon Feb 24 12:02:47 2003