This is the mail archive of the gcc@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: cout


On Nov  2, 1999, Jeff Parish <jlparish@net-link.net> wrote:

> I have Mandrake 6.1-l, and I have loaded gcc, but when I run, I get
> "/tmp/ccJ7KYpz.o(.text+0xf): undefined reference to 'cout'  ".

Try g++ instead of gcc.  This will link your program with -lstdc++,
that contains the definition of cout.

> If you can respond, please respond to jlparish@ieee.org; my SP has spam
> problems.

You could at least have set a Reply-to: header :-)

-- 
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them


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