Mail Archives: djgpp/2002/12/10/05:44:44
Hi!
I've recently downloaded djgpp using the zip-picker on delorie.com, and unzipped
all files using unzip32.exe. I am running win2000, and I have installed the c++
zip file as well as all other zip files i was recommended.
The program i was trying to compile was:
#include <iostream>
int main()
{
cout << "Hello!\n";
return 0;
}
I have been trying different command lines:
gcc -c -Wall hello.cc
gcc -x c++ hello.cc
gcc -c hello.cc -lgpp
gxx hello.cc -o hello.exe
gxx -c -Wall hello.cc
gcc -c -Wall hello.cc -lstdcxx
but everytime I just get error messages:
hello.cc: In function 'int main()':
hello.cc:5:'cout' undeclared (first use this function)
What should I do, I mean this should be quite a simple program...
Thank you!
- Raw text -