Hi,
I have install cygwin in my PC which is having Windows-XP.
I am able to run c programm successfully using gcc compiler but when i am running c++ program it is giving the following error:
$ gcc abc.cpp
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cclwkyqD.o:abc.cpp
.text+0xd): unde
fined reference to `std::basic_string<char, std::char_traits<char>, std::allocat
or<char> >::size() const'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cclwkyqD.o:abc.cpp
.text+0x60): und
efined reference to `std::basic_string<char, std::char_traits<char>, std::alloca
tor<char> >:
perator[](unsigned int) const'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cclwkyqD.o:abc.cpp
.text+0x9f): und
efined reference to `std::basic_string<char, std::char_traits<char>, std::alloca
tor<char> >:
perator[](unsigned int) const'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cclwkyqD.o:abc.cpp
.text+0xce): und
efined reference to `std::basic_string<char, std::char_traits<char>, std::alloca
tor<char> >:
perator[](unsigned int) const'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cclwkyqD.o:abc.cpp
.text+0x14f): un
defined reference to `std::ios_base::Init::Init()'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cclwkyqD.o:abc.cpp
.text+0x16a): un
defined reference to `std::ios_base::Init::~Init()'
collect2: ld returned 1 exit status
can any one help me what mistake i have done in installing gcc complier..Do i have missed some imp file or something..
Thanks in advance.
Regards
Gauri