[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can we use C++ to write kernel code?
OP didn't ask for why it should or shouldn't be done, but can it be done.
The answer is yes.
See :
http://seclists.org/lists/linux-kernel/2004/Feb/0026.html
On Sun, 2 May 2004, Bernd Petrovitsch wrote:
> 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/
>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/