[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can we use C++ to write kernel code?



Hi,
 
I am wondering if we can use C++ to write a kernel module. The reason is I have writen many codes in C++ with class, template. It is too difficult to change it to C.
 
I have tried compile a simple kernel module with g++ instead of c, but got many compilation errors.
 
Anybody has any experience to write kernel module with C++?
 
Thanks,
 
zhen