On Sun, 2004-05-02 at 16:41, Zhen Liu wrote: > 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++? Short answer: FOrget it. Long answer: Search in the archives of the kernel-mailing-list. This topic has been discussed to death. Bernd -- Firmix Software GmbH http://www.firmix.at/ mobil: +43 664 4416156 fax: +43 1 7890849-55 Embedded Linux Development and Services -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/