Re: c++ in kernel

From: Manfred Spraul (manfreds@colorfullife.com)
Date: Tue Mar 21 2000 - 07:51:36 EST


From: "Kneemeyer, Ralf" <ralf_kneemeyer@digi.com>
>
> In my tests I wasn't even able to insmod a simple module
> without c++ source, just with g++ compiled ( source.cc ).
>
That _should_ be possible, although I never tried that:

* did you surround all #include lines with 'extern "C" '?
* did you disable all fancy C++ features? exception handling, RTTI, perhaps
you must supply your own "new" and "delete".

c++ modules might be a topic for 2.5 [i.e. add CPPFLAGS to Rules.make, and
add the "extern "C"" in all header files.]

what was the exact error message from insmod?

--
    Manfred

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:32 EST