iostream? where did it go?
Last year I made a bunch of commandline C++ programs for school using project builder and everything worked fine.
Now I come back to them and they don't work because iostream is nowhere to be found. When did it get axed and why? It's a pretty basic library... And the stdio in project builder wanted me to enter all the scanf's before printing any of the printf's... all seems kinda weird to me.
Now I come back to them and they don't work because iostream is nowhere to be found. When did it get axed and why? It's a pretty basic library... And the stdio in project builder wanted me to enter all the scanf's before printing any of the printf's... all seems kinda weird to me.
Comments
<strong>Last year I made a bunch of commandline C++ programs for school using project builder and everything worked fine.
Now I come back to them and they don't work because iostream is nowhere to be found. When did it get axed and why? It's a pretty basic library... And the stdio in project builder wanted me to enter all the scanf's before printing any of the printf's... all seems kinda weird to me.</strong><hr></blockquote>
I'm using iostream just fine. I just double checked and iostream.h works as well. Are you sure that the dev tools are installed? It has to be the new version if you're running 10.2, the copy that came with 10.1 won't work.
[ 11-19-2002: Message edited by: Code Master ]</p>
/usr/include/gcc/darwin/2.95.2/g++/iostream
/usr/include/gcc/darwin/2.95.2/g++/iostream.h
/usr/include/gcc/darwin/3.1/g++-v3/backward/iostream.h
/usr/include/gcc/darwin/3.1/g++-v3/iostream
/usr/include/gcc/darwin/3.3/c++/backward/iostream.h
/usr/include/gcc/darwin/3.3/c++/iostream</pre><hr></blockquote>
Ignore the gcc 3.3 stuff
I wonder why it wasn't set to include it.. I'll have to look at my Project Builder default include paths
I mean, on the command like you could type "cc hello.c" or "c++ hello.cc", and for some reason it stopped working if I typed cc, so I had to start typing c++ to compile C++ stuff.