Hello
OS : Fedora Core I - Updated from Redhat 9

Sample Program:
#include<iostream.h>
int main() { cout<< "Hello World!";}

Complied with : gcc h.cpp -Wno-deprecated

ERROR:
/tmp/ccrUhvWb.o(.text+0x19): In function `main':
: undefined reference to `std::cout'
/tmp/ccrUhvWb.o(.text+0x1e): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& 
std::operator<< <std::char_traits<char> >(std::basic_ostream<char, 
std::char_traits<char> >&, char const*)'
/tmp/ccrUhvWb.o(.text+0x4a): In function 
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::ios_base::Init::Init[in-charge]()'
/tmp/ccrUhvWb.o(.text+0x79): In function `__tcf_0':
: undefined reference to `std::ios_base::Init::~Init [in-charge]()'
/tmp/ccrUhvWb.o(.eh_frame+0x11): undefined reference to 
`__gxx_personality_v0'
collect2: ld returned 1 exit status

Wotz wrong?? The problem only occurs when I compile a cpp program.C programs 
compiles OK.

Plez Help

regards
Hashir


-------------------------------------------------------------------------
Do What U Must not Must U what.   *******
-------------------------------------------------------------------------

_________________________________________________________________
Pay Cash on delivery on lakhs of products. 
http://go.msnserver.com/IN/50757.asp Only on Baazee.com

Reply via email to