My application is affected by a bug in older versions of libstdc++ in a rather serious data-lossy way. The remedies of how to select the right library version with -rpath or LD_LIBRARY_PATH are known, but not reliable to changes in deployment and build. After being bitten more than once myself I would like to stop the suffering and introduce a runtime-check for a sufficiently new version of libstdc++. How can I access the version in order to print a big fat warning message in case of the deployment failing to use the right version. Note that I need the minor version libstdc++.so.6.0.25 a.k.a. GLIBCXX_3.4.25 that comes with gcc 8.