C++ code in a kernel module?
Vaclav Haisman
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:
-ffreestanding
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.
Vaclav Haisman
More information about the freebsd-hackers
mailing list