From: "Kneemeyer, Ralf" <ralf_kneemeyer@digi.com>
>
> I tried some things with c++ modules.
> I used a dummy called cplusplus.cc (for g++) with init_/cleanup_module.
> The complete source was extern "C"ed.
Which kernel version?
Did you use the correct compiler parameters (-D__KERNEL__ -DMODULE,...)
2.3.99-pre3 won't compile as .cpp, but I'll try to submit a patch:
* "::" in asm-i386/rwlock.h: we must add a space between both colons.
* linux/wait.h: rename the parameter "new".
* linux/mm.h: rename "struct page.virtual", this causes a parse error in
page_address() [asm-i386/pgtable.h]. Perhaps an egcs bug?
* Rules.mak: add a new rule for .o.cpp, identical to .o.c
* modify "make dep", I didn't check it yet
* lots of warnings about "volatile qualifier ignored on asm", I hope egcs
produces the correct asm output :-/
-- 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 : Fri Apr 07 2000 - 21:00:09 EST