Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-11 Thread Bernd Petrovitsch
ntire kernel. > I only want to compile my module with g++ and insmod it. > Any hint on how to write the Makefile. You really should learn on the differences at run-time between between - pure C in a hosted environment (read: you have a full libc), - pure C in a standalone environment (read: e.g. the

Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-11 Thread vignesh babu bm
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 m

Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-11 Thread rohit h
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? > >&

Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-11 Thread vignesh babu bm
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

Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-11 Thread rohit h
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

Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-11 Thread Bernd Petrovitsch
module with g++ and insmod it. Any hint on how to write the Makefile. You really should learn on the differences at run-time between between - pure C in a hosted environment (read: you have a full libc), - pure C in a standalone environment (read: e.g. the Linux kernel), and - C++ in both variants

Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-08 Thread Joonwoo Park
>> 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 lo

Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-08 Thread Jan Engelhardt
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 li

Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-08 Thread Joonwoo Park
ordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ > Rohit, 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. Thanks, Joonwoo -- To unsubscribe from this list

Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-08 Thread Bernd Petrovitsch
em. Use plain C and the gcc. > What kind of runtime support is needed ( arm linux kernel)? Is a > patch available for it? Google for "linux kernel c++" and read on - this has been discussed several times on this list. Bernd -- Firmix Software GmbH http:

Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-08 Thread Joonwoo Park
. 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

Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-08 Thread Bernd Petrovitsch
and the gcc. What kind of runtime support is needed ( arm linux kernel)? Is a patch available for it? Google for linux kernel c++ and read on - this has been discussed several times on this list. Bernd -- Firmix Software GmbH http://www.firmix.at/ mobil: +43 664 4416156

Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-08 Thread Jan Engelhardt
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

Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-08 Thread Joonwoo Park
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. Thanks, Joonwoo -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED

[LINUX-KERNEL] C++ in linux kernel

2008-02-07 Thread rohit h
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? Thanks, Rohit

[LINUX-KERNEL] C++ in linux kernel

2008-02-07 Thread rohit h
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? Thanks, Rohit