[haiku-development] Re: hybrid questions -- not "how" to build, but why?
- From: Ingo Weinhold <ingo_weinhold@xxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Mon, 28 Dec 2009 20:59:15 +0100
On 2009-12-28 at 16:29:18 [+0100], Colin Günther <coling@xxxxxx> wrote:
> Stéphane Charette wrote:
> > QUESTION #3: What is the difference between the two hybrid flavours,
> > GCC2/4 and GCC4/2?
> The hybrid is for userspace apps, only. Though when developing C++ based
> drivers (e.g. a VirtualBox mouse driver ;) you will encounter
> differences between a gcc2/4 and a gcc4/2 build. As the driver built for
> gcc2 will then not work on a gcc4, due to different name mangling. And I
> think you can generalize this for every C++ software acting solely in
> kernel space (everything in src/add-ons/kernel).
The public kernel API is pure C only. So as long as you stick to that, your
driver should work fine with either kernel. If your driver uses C++
internally, you might need to statically link against the C++ runtime and
possibly add some dummy symbols, though.
CU, Ingo
Other related posts:
- » [haiku-development] hybrid questions -- not "how" to build, but why?- Stéphane Charette
- » [haiku-development] Re: hybrid questions -- not "how" to build, but why?- PulkoMandy
- » [haiku-development] Re: hybrid questions -- not "how" to build, but why?- Colin Günther
- » [haiku-development] Re: hybrid questions -- not "how" to build, but why?- Alexander von Gluck
- » [haiku-development] Re: hybrid questions -- not "how" to build, but why?- Stephan Assmus
- » [haiku-development] Re: hybrid questions -- not "how" to build, but why?- Stéphane Charette
- » [haiku-development] Re: hybrid questions -- not "how" to build, but why?- Ingo Weinhold
- » [haiku-development] Re: hybrid questions -- not "how" to build, but why? - Ingo Weinhold
- » [haiku-development] Re: hybrid questions -- not "how" to build, but why?- François Revol
- » [haiku-development] Re: hybrid questions -- not "how" to build, but why?- Michael Crawford
- » [haiku-development] Re: hybrid questions -- not "how" to build, but why?- Stéphane Charette