This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Starting problems with gcc


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]