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

cout undefined symbol



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



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