https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82366
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- It looks like the libstdc++.so.6 that the application links to is older than the version you compiled against, and doesn't have support for the new std::string type used in your callback. It might work to build your code with the macro _GLIBCXX_USE_CXX11_ABI defined to 0, but what you're trying to do (compile against a new libstdc++ then use an older one at run-time) is not supported and cannot work in general.