This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Starting problems with gcc
- To: gcc-help at gcc dot gnu dot org
- Subject: Starting problems with gcc
- From: "Red" <red at draven dot ch>
- Date: Fri, 13 Jul 2001 14:16:27 +0200 (CEST)
- Reply-To: red at draven dot ch
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