C++ code in a kernel module?
V.Haisman at sh.cvut.cz
Tue Sep 9 12:51:53 PDT 2003
Apart from -fno-rtti and -fno-exceptions you will probably need to use also
-ffreestanding. Excerpt from gcc man page:
Assert that compilation takes place in a freestanding environment.
This implies -fno-builtin. A freestanding environment is one in
which the standard library may not exist, and program startup may
not necessarily be at "main". The most obvious example is an OS
kernel. This is equivalent to -fno-hosted.
More information about the freebsd-hackers