[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0802081653560.26116@fbirervta.pbzchgretzou.qr>
Date: Fri, 8 Feb 2008 16:54:59 +0100 (CET)
From: Jan Engelhardt <jengelh@...putergmbh.de>
To: Joonwoo Park <joonwpark81@...il.com>
cc: rohit h <hrohit85@...il.com>, linux-kernel@...r.kernel.org
Subject: Re: C++ in linux kernel
On Feb 9 2008 00:14, Joonwoo Park wrote:
>2008/2/8, rohit h <hrohit85@...il.com>:
>> Hi,
>> I am a kernel newbie.
>> I tried to insmod a C++ module containing classes, inheritance.
>> I am getting 'unresolved symbol' error when I use the 'new' keyword.
>> What could the problem be?
>>
>> What kind of runtime support is needed ( arm linux kernel)? Is a
>> patch available for it?
>>
>Please take a look at click modular router which is using c++ as a
>linux kernel module.
>http://www.read.cs.ucla.edu/click/
>The lib/glue.cc provides custom operator new.
Uh, let's not make the world worse :)
Just call malloc from C++, and carefully select what C++ features
you are going to use. The VMware source for example does it right.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists