Thread: libstdc++.so.5 not found

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    22

    libstdc++.so.5 not found

    I have a FC4 machine of i386 architecture.

    when i am trying to run any simple program like

    Code:
    #include<iostream>
    using namespace std;
    
    int main()
    {
    cout<<"Hello World";
    return 0;
    }
    This code compiles well.
    it gives me error saying required libstdc++.so.5 not found/exist. I have just now installed libstdc++4.0.2.fc4.rpm but it still persists. I think it is some runtime library linking issue.
    Ihad also run /sbin/ldconfig.
    A few days back it was working perfectly. After that to have some space i uninstalle some applications, one of them was ecclipse. Only in ecclipse i removed c++ development environment. Do this have sth to do with such behaviour.How i can restore it back.
    i am looking for help in this regard.

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Type
    gcc -v
    on the command line. If the compiler that comes up is gcc-3.3.x, upgrade at least to 3.4.x. Or install libstdc++3.x.
    Basically, gcc-3.3 needs libstdc++3, which is libstdc++.so.5. gcc-3.4 and above use libstdc++4, which is libstdc++.so.6. Yes, it's confusing.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  2. Quantum Random Bit Generator
    By shawnt in forum C++ Programming
    Replies: 62
    Last Post: 06-18-2008, 10:17 AM
  3. Puzzled.
    By silhoutte75 in forum C Programming
    Replies: 13
    Last Post: 01-21-2008, 05:17 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM