How to link with specific library ( g++; libstdc++.so.5 and libstdc++.so.6 )
问题 A simple question - is there any way to make the g++ linker to link with a specific libstdc++ library version? I didn't find anything useful in the man page of gcc / g++ , neither in other questions here. Here's the situation - my application uses a specific shared library, that's built with libstdc++.so.5 and I want to install and use it on RHEL5 . So, when I try to build the application on a RHEL5 machine, I got the warning: warning: libstdc++.so.5, needed by ..the_shared_library_.. may