Virtual functions and Kernel Code
Posted: Fri Jan 09, 2004 12:00 am
Hi,
I'm trying to write a (very) simple kernel in C++ using object orientation. I wanted to implement device drivers using something similar to an "interface" in Java, in other words, and entirely virtual abstract base class. However, when I try to compile any code with virtual functions, it doesn't link. I understand that I will probably have to re-write some of the C++ library, but can someone tell me where to start, and what to look for.
I'm using gcc (g++) version 3.2.2, and ld version 2.13.90
Thanks
I'm trying to write a (very) simple kernel in C++ using object orientation. I wanted to implement device drivers using something similar to an "interface" in Java, in other words, and entirely virtual abstract base class. However, when I try to compile any code with virtual functions, it doesn't link. I understand that I will probably have to re-write some of the C++ library, but can someone tell me where to start, and what to look for.
I'm using gcc (g++) version 3.2.2, and ld version 2.13.90
Thanks