Hi - I know this isn't the perfect place for this posting but I am going ahead with it anyway, as I havent gotten a lot of help googling, here it is:
here is my compiler: [EMAIL PROTECTED]:/tmp$ g++ -v Reading specs from /usr/lib/gcc-lib/i386-linux/3.3/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i386-linux Thread model: posix gcc version 3.3 (Debian) -------------------------------------------------------- here is my program [EMAIL PROTECTED]:/tmp$ cat test.cpp //test.cpp #include <iostream.h> int main(){ cout<<"Hello, world!"<<endl; return 0; } ---------------------------------------------------------- here is the output from compiling: [EMAIL PROTECTED]:/tmp$ g++-3.3 -v -o test.out test.cpp Reading specs from /usr/lib/gcc-lib/i386-linux/3.3/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i386-linux Thread model: posix gcc version 3.3 (Debian) /usr/lib/gcc-lib/i386-linux/3.3/cc1plus -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -D_GNU_SOURCE test.cpp -D__GNUG__=3 -quiet -dumpbase test.cpp -auxbase test -version -o /tmp/ccdlEPys.s GNU C++ version 3.3 (Debian) (i386-linux) compiled by GNU C version 3.3 (Debian). GGC heuristics: --param ggc-min-expand=55 --param ggc-min-heapsize=48277 ignoring nonexistent directory "/usr/i386-linux/include" #include "..." search starts here: #include <...> search starts here: /usr/include/c++/3.3 /usr/include/c++/3.3/i386-linux /usr/include/c++/3.3/backward /usr/local/include /usr/lib/gcc-lib/i386-linux/3.3/include /usr/include End of search list. In file included from /usr/include/c++/3.3/backward/iostream.h:31, from test.cpp:2: /usr/include/c++/3.3/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. as -V -Qy -o /tmp/ccaFr0Ta.o /tmp/ccdlEPys.s GNU assembler version 2.14.90.0.4 (i386-linux) using BFD version 2.14.90.0.4 20030523 Debian GNU/Linux /usr/lib/gcc-lib/i386-linux/3.3/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o test.out /usr/lib/gcc-lib/i386-linux/3.3/../../../crt1.o /usr/lib/gcc-lib/i386-linux/3.3/../../../crti.o /usr/lib/gcc-lib/i386-linux/3.3/crtbegin.o -L/usr/lib/gcc-lib/i386-linux/3.3 -L/usr/lib/gcc-lib/i386-linux/3.3/../../.. /tmp/ccaFr0Ta.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc-lib/i386-linux/3.3/crtend.o /usr/lib/gcc-lib/i386-linux/3.3/../../../crtn.o ------------------------------------------------------------------------ I refer to page: http://gcc.gnu.org/onlinedocs/libstdc++/17_intro/headers_cc.txt which lists iostream as a standard library header. So why throw the message from "backward/backward_warning.h" at me? In addition, if I alter the #include to be #include </usr/include/g++-3/iostream> then I still get the "backward" warning, but note that I don't have to put ".h" after the "iostream". The goal here is to have a program reading: #include <iostream> int main(){ cout<<"Hello, world!"<<endl; return 0; } compile without errors or warnings without having to add -Wno-deprecated and using <iostream>, not <iostream.h> as iostream is supposed to be compliant with the standard C libraries aforementioned. P.S. - which libraries are best to use; /usr/include/g++-3/ or /usr/include/c++/3.3/ ? Any help or just comments are appreciated, thank you. Shawn Shawn Lamson [EMAIL PROTECTED] Debian GNU/Linux 3.0 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]