------- Additional Comments From mike at navi dot cx 2005-05-08 12:38 ------- http://gcc.gnu.org/onlinedocs/libstdc++/abi.html
See the "testing multi-abi binaries" section at the bottom: <quote> A "C" application, dynamically linked to two shared libraries, liba, libb. The dependent library liba is C++ shared library compiled with gcc-3.3.x, and uses io, exceptions, locale, etc. The dependent library libb is a C++ shared library compiled with gcc-3.4.x, and also uses io, exceptions, locale, etc. [ ... snip ... ] This resulting binary, when executed, will be able to safely use code from both liba, and the dependent libstdc++.so.6, and libb, with the dependent libstdc++.so.5. </quote> A C++ program linked indirectly (via a C library) against another C++ library is exactly the same scenario. This is the whole point of symbol versioning. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21405