diff --git a/src/system/kernel/util/kernel_cpp.cpp b/src/system/kernel/util/kernel_cpp.cpp index 492697a219..32fc90309a 100644 --- a/src/system/kernel/util/kernel_cpp.cpp +++ b/src/system/kernel/util/kernel_cpp.cpp @@ -28,6 +28,14 @@ __pure_virtual() panic("pure virtual function call\n"); } +#elif __GNUC__ >= 3 + +extern "C" void +__cxa_pure_virtual() +{ + panic("pure virtual function call\n"); +} + #endif // full C++ support in the kernel