This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/82366] std::regex constructor called from shared library throws std::bad_cast


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]