Probably you need to set LD_LIBRARY_PATH to /usr/lib or the path where libstdc++.so is present. Thanks & regards, Bansidhar A. Deshpande Software Engineer, Infineon Technologies India Pvt. Ltd. Discoverer Building. I.T.P.L., White Field Road, Bangalore -560066 Phone: +91-80-51392011 Extn : 2066 Fax: +91-80-8410012 *Disclaimer* This e-mail and any attachments are confidential and may be subject to legal or some other professional privilege. They are intended solely for the attention and use of the named addressee(s). They must not be disclosed to any person without authorization. This e-mail and any attachments are also subject to copyright. They may only be copied or distributed with the consent of the copyright owner. If you are not a named addressee you must not use, disclose, retain or reproduce all or any part of the information contained in this e-mail or any attachments. If you have received this email by mistake please notify the sender immediately by return email and delete or destroy all copies of the email. Any confidentiality, privilege or copyright is not waived or lost because this email has been sent to you by mistake. -----Original Message----- From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On Behalf Of Llfrg@xxxxxxx Sent: Thursday, February 05, 2004 8:04 AM To: gcc-help@xxxxxxxxxxx Subject: Problem with shared libraries Hello, I have just built gcc 3.3.2 on my red hat linux system. The configure and build process apparently worked, but when I try to run some C++ and fortran programs I get shared library problems, for example, the simple program below compiles but does not run. ---Sample C++ program #include <iostream> using namespace std; int main(int argc, char* argv[]) { cout << "Hello, world!" << endl; return 0; } --- when trying to run the program above I get the following: ---error message ./a.out: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory --- Any tips about what's going on? Thank you very much, Leonardo.