Mail Archives: djgpp/2000/05/07/14:47:11
I bought the book SAMS teach yourself c++ in 24 hours about a year ago - but in
my opinion might as well be 24 years. As I am still trying to compile:
#include <iostream.h>
int main()
{
cout << "Hello World!\n";
return 0;
}
What am I doing wrong?
I run windows 95 and use DJGPP.
Could someone out there out of the kindness of their heart tell me EXACTLY what
to do and how to do it step by step!
So here's what I do:
I write all that stuff up there on notepad and save it as hello.cpp on c:\
drive
I go to RUN, and type:
gxx <c:\hello.cpp> -o <hello.exe>
I'm pretty sure it's wrong, but what do to get it compiled to obj. file?
By the way, this is the error message I get :
gxx.exe: <c:\hello.cpp>: No such file or directory (ENOENT)
WHAT?????????
Thanks for your time
David Du
- Raw text -