libstdc++.so.5 not found

This is a discussion on libstdc++.so.5 not found within the Tech Board forums, part of the Community Boards category; I have a FC4 machine of i386 architecture.
when i am trying to run any simple program like
Code:
#include<iostream>
...

libstdc++.so.5 not found

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.

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.