hi TInk,
Thanks for the reply.
actually all c programs are working. only cpp ones are giving me that error
for example the following program
#include <stdio.h>
#include <iostream.h>
int main()
{
cout<<"Hello world\n";
return 0;
}
is giving me the error
junaid@Dev-jsahibzada:~$ gcc -o client client.cpp
In file included from /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/backward/iostream.h:31,
from client.cpp:2:
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
/tmp/cco9I2s4.o: In function `main':client.cpp

.text+0x27): undefined reference to `std::cout'
:client.cpp

.text+0x2c): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std:

perator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
/tmp/cco9I2s4.o: In function `__tcf_0':client.cpp

.text+0x46): undefined reference to `std::ios_base::Init::~Init()'
/tmp/cco9I2s4.o: In function `__static_initialization_and_destruction_0(int, int)':client.cpp

.text+0x6f): undefined reference to `std::ios_base::Init::Init()'
/tmp/cco9I2s4.o

.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status