Undefined first referenced
symbol in file
std::basic_string<char, std::char_traits<char>, std::allocator<char> >:
perator[](unsigned int) const/var/tmp//cc9ACJBX.o
std::basic_istream<char, std::char_traits<char> >& std:
perator>><char, std::char_traits<char> >(std::basic_istream<char, std::char_traits<char> >&, char&)/var/tmp//cc9ACJBX.o
std::basic_istream<char, std::char_traits<char> >:
perator>>(int&)/var/tmp//cc9ACJBX.o
std::cout /var/tmp//cc9ACJBX.o
std::ios_base::Init::~Init() /var/tmp//cc9ACJBX.o
std::ios_base::Init::Init() /var/tmp//cc9ACJBX.o
__gxx_personality_v0 /var/tmp//cc9ACJBX.o
std::basic_ostream<char, std::char_traits<char> >& std:
perator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)/var/tmp//cc9ACJBX.o
std::basic_istream<char, std::char_traits<char> >::get()/var/tmp//cc9ACJBX.o
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const/var/tmp//cc9ACJBX.o
std::cin /var/tmp//cc9ACJBX.o
ld: fatal: Symbol referencing errors. No output written to a.out
----------------------------------------------------------------
I am having the above errror while compiling a C++ program using "gcc tic.C" command. Please help.
Thanks in advance.