On Mon, 8 Sep 2003 11:35:37 -0600 John Giacomoni <[EMAIL PROTECTED]> wrote:
> I was planning on using the macro __cplusplus to toggle using > extern "C" { }, however the bsd.kmod.mk style Makefiles seem to > force the language to -std=c99 even when compiling with c++ . > > my initial steps have been as follows: > take a functioning C based kernel module and rename to .cc > added extern "C" around the includes. > #defined key words such as new to xxx_new > recompiled the new .cc file by hand without -std=c99, but > keeping all the flags as the Makefile set them. > then linked using the Makefile and finally loaded the module. -fno-rtti -fno-exceptions is probably a must unless you want to bring a whole libsupc++ library into the kernel. -- Alexander Kabaev _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"