Dogcow
09-24-2002, 12:26 PM
I'm normally a Java monkey but I'm being forced to re-learn C++ for some huge projects.
I tried to start back up with a classic helloworld program, but can't get it to work. I created a C file in Project Builder (hello.h) and used the following code:
#include <Carbon/Carbon.h>
#include <iostream.h>
main()
{
cout << "Hello World! ";
}
I attempted to compile from the command line via 'gcc hello.h' and got the following errors:
%gcc hello.c
hello.h:11: header file 'iostream.h' not found
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
Any help would be appreciated, I have to dive in to some much harder stuff very soon.
-Dogcow "moof!"
Visit The Underground (http://theunderground.eon.com.au)
I tried to start back up with a classic helloworld program, but can't get it to work. I created a C file in Project Builder (hello.h) and used the following code:
#include <Carbon/Carbon.h>
#include <iostream.h>
main()
{
cout << "Hello World! ";
}
I attempted to compile from the command line via 'gcc hello.h' and got the following errors:
%gcc hello.c
hello.h:11: header file 'iostream.h' not found
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
Any help would be appreciated, I have to dive in to some much harder stuff very soon.
-Dogcow "moof!"
Visit The Underground (http://theunderground.eon.com.au)