stdc++ is missing terminate_handler functions

Martin von Loewis martin@mira.isdn.cs.tu-berlin.de
Tue Dec 8 13:34:00 GMT 1998


> It would appear that libstdc++ doesn't have the terminate_handler
> functions for unhandled exceptions, most notably "set_terminate".  It
> used to exist, probably in 2.8.

libstdc++ does not, but g++ does. Please compile

#include <exception>

int main()
{
  std::set_terminate(0);
}  

with egcs-2.91.60, or report an example that does not compile (giving
the exact error messages). <exception> is in lib/gcc-lib/.../include,
and set_terminate is in libgcc.a

Regards,
Martin



More information about the Gcc-bugs mailing list