Hi, there, I am using gcc 3.2.2 shipped with Redhat 9. I tried to compile the following simple C++ program: #include <iostream> #include <string> using namespace std; int main() { cout << "Please enter your first name: "; string firstName; cin >> firstName; cout << "\nWelcome to the world of C++, " <<firstName << "\n"; } The compiler apparently did not like this program and complained a lot: /tmp/ccagzp8A.o(.text+0x1a): In function `main': : undefined reference to `std::cout' /tmp/ccagzp8A.o(.text+0x1f): 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/ccagzp8A.o(.text+0x2e): In function `main': : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string[in-charge]()' /tmp/ccagzp8A.o(.text+0x3d): In function `main': : undefined reference to `std::cin' /tmp/ccagzp8A.o(.text+0x42): In function `main': : undefined reference to `std::basic_istream<char, std::char_traits<char> >& std::operator>><char, std::char_traits<char>, std::allocator<char> >(std::basic_istream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' /tmp/ccagzp8A.o(.text+0x61): In function `main': : undefined reference to `std::cout' /tmp/ccagzp8A.o(.text+0x66): 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/ccagzp8A.o(.text+0x6f): In function `main': : undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /tmp/ccagzp8A.o(.text+0x78): 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/ccagzp8A.o(.text+0x8f): In function `main': : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string [in-charge]()' /tmp/ccagzp8A.o(.text+0xac): In function `main': : undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string [in-charge]()' /tmp/ccagzp8A.o(.text+0xdc): In function `__static_initialization_and_destruction_0(int, int)': : undefined reference to `std::ios_base::Init::Init[in-charge]()' /tmp/ccagzp8A.o(.text+0x10b): In function `__tcf_0': : undefined reference to `std::ios_base::Init::~Init [in-charge]()' /tmp/ccagzp8A.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status Any suggestion? Thank you for the help! Jian __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail