From aeef8a1098ad83bd5e5dda658cccfc7105e4b8af Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 16 Nov 2005 20:51:17 +0000 Subject: [PATCH] Reverted to the previous version. I was too quick; the boot loader doesn't link against libsupc++ and still needs the symbol. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14972 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/util/kernel_cpp.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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