1 2 #include <stdio.h> 3 #include <stdlib.h> 4 5 extern "C" void __cxa_pure_virtual() 6 { 7 fprintf(stderr, "Pure virtual function called. Are you calling virtual methods from a destructor?\n"); 8 abort(); 9 } 10 11