This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: cout undefined symbol
- To: Krishna Mohan <krishnam at subexgroup dot com>
- Subject: Re: cout undefined symbol
- From: Daniel Berlin <dan at www dot cgsoftware dot com>
- Date: Fri, 30 Mar 2001 01:33:07 -0500 (EST)
- cc: <gcc-bugs at gcc dot gnu dot org>, <bug-gcc at gnu dot org>, <gcc at gcc dot gnu dot org>
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
>
>