extern "C" { #include } /* C++ code calls __cxa_pure_virtual when a pure-virtual method is called. * This is an error case, so we just redirect it to abort. */ extern "C" void __cxa_pure_virtual() { abort(); }