LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Bernd Petrovitsch <bernd@firmix.at>
To: rohit h <hrohit85@gmail.com>
Cc: Jan Engelhardt <jengelh@computergmbh.de>,
	Joonwoo Park <joonwpark81@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [LINUX-KERNEL] C++ in linux kernel
Date: Mon, 11 Feb 2008 13:20:41 +0100	[thread overview]
Message-ID: <1202732441.5221.17.camel@tara.firmix.at> (raw)
In-Reply-To: <90d987c0802110337i42082a7ew905a096028fe347b@mail.gmail.com>

On Mon, 2008-02-11 at 17:07 +0530, rohit h wrote:
> On Feb 8, 2008 9:24 PM, Jan Engelhardt <jengelh@computergmbh.de> wrote:
[...]
> > Compiling the kernel module with g++ is not a simple work, you may
> > need big patch for kernel itself.
> 
> I don't want to compile entire 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 Linux kernel), and
- C++ in both variants.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services



      parent reply	other threads:[~2008-02-11 12:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-08  5:21 rohit h
2008-02-08  5:28 ` KOSAKI Motohiro
2008-02-08 10:17 ` [LINUX-KERNEL] " Bernd Petrovitsch
2008-02-08 13:39 ` Andi Kleen
2008-02-08 15:14 ` [LINUX-KERNEL] " Joonwoo Park
2008-02-08 15:54   ` Jan Engelhardt
2008-02-09  0:45     ` Joonwoo Park
2008-02-11 11:37     ` rohit h
2008-02-11 11:49       ` vignesh babu bm
2008-02-11 12:20       ` Bernd Petrovitsch [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1202732441.5221.17.camel@tara.firmix.at \
    --to=bernd@firmix.at \
    --cc=hrohit85@gmail.com \
    --cc=jengelh@computergmbh.de \
    --cc=joonwpark81@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: [LINUX-KERNEL] C++ in linux kernel' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).