Starting problems with gcc
Red
red@draven.ch
Fri Jul 13 05:16:00 GMT 2001
Hi
I'm just beginning with gcc... and I wanted to write a little 'Hello World'-
Programm:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}
I tried to compile it with 'gcc file.C' and it returned:
/tmp/cc5LrnKd.o: In function `main':
/tmp/cc5LrnKd.o(.text+0x17): undefined reference to `std::cout'
followed by hundreds of error messages...
What is wrong?
--
Red
red@draven.ch
More information about the Gcc-help
mailing list