Another novice programmer here:
I am trying to natively compile some programs that include <iostream>. I have tried <iostream.h>, "iostream.h", and "iostream" with no luck. I am attempting to use the cout command. I have zgcc-3.4.4 on rc12.
Can someone point a newbie in the right direction? Where do I get the iostream library? How do I find out what libraries are included with zgcc? Is cout part of another library?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=119314\"][{POST_SNAPBACK}][/a][/div]
are you trying to compile c++ code with a c compiler? gcc is a c compiler. to compile c++ code, you need to use g++
also, <iostream.h> is an older c++ interface. <iostream> is the newer one and you should try using it instead of iostream.h unless you are trying to compile older programs. you should also not mix the two.
a note on the <iostream> vs "iostream". If the header file is in the default include directory, then you use <iostream>. you would use "iostream" if it was a custom header file which is located locally with the source code, ie the same directories as your .cpp files.