Problems with new "" headers

Brian Nelson
Thu Feb 20 22:45:00 GMT 2003

I am having problems with gcc 3.2.2 and the c++ standard headers. They 
don't seem to work.

I create a generic hello world program, with #include <iostream> and a cout 
command, and when i compile, I get : In function `int main()': `cout' undeclared (first use this function) (Each undeclared identifier is reported only once for each function 
   it appears in.)

If i replace the iostream with iostream.h , it compiles fine, but spews out a 
warning about antiquated headers. Why don't the new ones work anymore? they 
worked fine for me under 2.95.3

BTW, this seems to happen is (at least) 3.2.1 and 3.2.2 (only v3 versions I have 

Happens both with a 3.1.1 package from sunfreeware and a 3.2.2 that i 
bootstrapped myself.

BTW, my platform is an ultra 30 w/ solaris8.

Please help!


More information about the Gcc-bugs mailing list