#include <iostream>

David

----- Original Message -----
From: John Starkey <[EMAIL PROTECTED]>
To: Linux <[EMAIL PROTECTED]>
Sent: Wednesday, March 01, 2000 11:22 AM
Subject: gcc and compiling errors.


> I'm not sure if I am out of the scope of this list yet, but since I'm
> still new to Linux and gcc I thought I'd ask you guys.
>
> RedHat6.1 is the system.
>
> I'm trying to compile a small assignment for school using gcc. It won't
> compile so I stripped it down to "Hello World". I thought I'd compiled
> on this machine before but maybe not. Anyway.
>
> These are the errors:
>
>
> /tmp/cc2fWQbM.o: In function 'main':
> /tmp/cc2fWQbM.o(.text+0x4): undefined reference to 'endl(ostream &)'
> /tmp/cc2fWQbM.o(.text+0xe): undefined reference to 'cout'
> /tmp/cc2fWQbM.o(.text+0x13): undefined reference to
> 'ostream::operator<<(char const *)'
> /tmp/cc2fWQbM.o(.text+0x1e): undefined reference to
> 'ostream::operator<<(ostream &(*)(ostream &))'
> collect2: ld returned 1 exit status
>
> I also tried compiling something I've done before (on another machine)
> and it returned basically the same errors. So I am thinking it has to do
> with the install. So I tried installing glibc, glibc-devel, and
> glibc-profile. I think someone told me these are the C libraries. I also
> did a 'find iostream' and nothing came up. Math and iostream are the
> only includes I need in this one. I did find Math.h in
> /usr/i386-glibc20-linux/include
>
> Am I looking in the right direction???
>
> Thanks guys.
>
> John
>
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to [EMAIL PROTECTED]
> Please read the FAQ at http://www.linux-learn.org/faqs



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to