This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: cout undefined symbol
- To: <gcc-bugs at gcc dot gnu dot org>,<bug-gcc at gnu dot org>,<gcc at gcc dot gnu dot org>
- Subject: RE: cout undefined symbol
- From: "Krishna Mohan" <krishnam at subexgroup dot com>
- Date: Fri, 30 Mar 2001 13:42:00 +1000
- Reply-To: <krishnam at subexgroup dot com>
Sir,
file is there in /usr/local/lib directory.
Two files( one is shared and another is archive) are there
libstdc++.so.2.10.0 and libstdc++.a.2.10.0.
My gcc version is 2.95.2.
Thanks
Krishna
-----Original Message-----
From: Daniel Berlin [mailto:dan@www.cgsoftware.com]
Sent: Friday, 30 March 2001 5:12 PM
To: Krishna Mohan
Subject: Re: Error while executing the program ( libstdc++ open failed)
You don't have libstdc++ in your library path then.
On Fri, 30 Mar 2001, Krishna Mohan wrote:
> Sir,
>
> When i execute program iam getting this error
>
> ld.so.1: ./a.out: fatal: libstdc++.so.2.10.0: open failed: No such file or
> direc
> tory
> Killed
>
> Thanks
> P.KrishnaMohan
>
>
> -----Original Message-----
> From: Daniel Berlin [mailto:dan@www.cgsoftware.com]
> Sent: Friday, 30 March 2001 4:33 PM
> To: Krishna Mohan
> Cc: gcc-bugs@gcc.gnu.org; bug-gcc@gnu.org; gcc@gcc.gnu.org
> Subject: Re: cout undefined symbol
>
>
> Use g++ test.cpp, which will automatically link with the right libraries.
>
>
> On Fri, 30 Mar 2001, Krishna Mohan wrote:
>
> >
> > Sir,
> >
> > Iam compiling C++ program which is giving linker error as " cout
> undefined
> > symbol."
> >
> > My program test.cpp is like this.
> >
> > # include<iostream.h>
> > void main()
> > {
> > cout<<"hello world";
> > }
> >
> > Iam compiling using gcc test.cpp command.
> >
> > Should i include any library for iostream? If it is what library should
i
> > include?
> > Please help me out.
> >
> > Thanks
> > P.KrishnaMohan
> >