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]

Re: Starting problems with gcc


> 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'
> 
> What is wrong? 

Use g++, not gcc


-- 
Ryan T. Sammartino
http://members.home.net/ryants/
Do you think your mother and I should have lived comfortably so long
together if ever we had been married?


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