I finally found the problem, you did it also.  To invoke
the c++ compiler, try the command:
g++   myfile.cpp

I'd guess the other spellings invoke different scrips or make
that don't cause the c++ iostream library to be available.

                                good luck,
                                                        ralph


>From: "T-Bond" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: [newbie] gcc
>Date: Fri, 23 Mar 2001 15:29:14 -0800
>
>Hi
>I got the same problem. That package, gcc-c++-2.95.2-12mdk, is installed 
>and
>I can't compile.
>I do the following:
>gcc test.cpp
>/tmp/cc80C8KF.o: In function 'main':
>/tmp/cc80C8KF.o(.text+0xf): undefined reference tp 'cout'
>/tmp/cc80C8KF.o(.text+0x14): undefined reference to
>'ostream::operator<<(char const *)'
>collect2: ld returned 1 exit status
>
>
>Any ideas what is wrong?
>----- Original Message -----
>From: "Kelley Terry" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, March 23, 2001 2:03 PM
>Subject: Re: [newbie] gcc
>
>
> > On Friday 23 March 2001 11:03 am, Ralph Frisbie wrote:
> > > I'm trying to use gcc with LInuxMandrake 7.2 in a C++ class.  The 
>linker
>is
> > > failing to find  the library containg cout, iostream, cin,
> > > etc.   Compile is clean, header file available, but link fails.
> > > A simple hello world  c program runs just fine, but a c++ version
> > > fails.
> > > I've run rpm -q on all of the packages mentioned in the Compile faq...
> > > What's wrong??
> > >
> > > ralph
> >
> > Ralph - For C++ support you need to install gcc-c++.  It's on your
>mandrake
> > install cd as gcc-c++-2.95.2-12mdk.i586.rpm.
> > --
> > Enjoy!
> > Kelley Terry <[EMAIL PROTECTED]>
> >
> >
>
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


Reply via email to