Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Sep 2003 21:51:58 +0200 (CEST)
From:      Vaclav Haisman <V.Haisman@sh.cvut.cz>
To:        John Giacomoni <John.Giacomoni@colorado.edu>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: C++ code in a kernel module?
Message-ID:  <20030909214852.K42582-100000@logout.sh.cvut.cz>
In-Reply-To: <DBE1CF41-E222-11D7-80D8-0003930719D8@colorado.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030909214852.K42582-100000>