Can we use C++ to write kernel code?

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

 



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

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux