From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 21 02:13:09 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E8C316A4CE for ; Thu, 21 Apr 2005 02:13:09 +0000 (GMT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id C695743D1F for ; Thu, 21 Apr 2005 02:13:08 +0000 (GMT) (envelope-from dleimbac@gmail.com) Received: by zproxy.gmail.com with SMTP id 40so388148nzk for ; Wed, 20 Apr 2005 19:13:08 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TfB2fmWeWrvFd34xzxEIWGU0zoKWfrFwYaOFcM8tNFPNA2rg9GIPSA7nqQqurSm7Ycs/Fy+jmmtHiD6F6e9PR1tuf7Ftfm/GwpKnPKxDKswuqHJDclkndoo5uQm6WZHdVqe4I9Tmkq8PD4cThzxJ/KCbXyJLJavz8kq3u0DpahM= Received: by 10.36.41.20 with SMTP id o20mr140565nzo; Wed, 20 Apr 2005 19:13:08 -0700 (PDT) Received: by 10.36.103.17 with HTTP; Wed, 20 Apr 2005 19:13:08 -0700 (PDT) Message-ID: <5bbfe7d4050420191316a629b7@mail.gmail.com> Date: Wed, 20 Apr 2005 19:13:08 -0700 From: David Leimbach To: Aziz KEZZOU In-Reply-To: <37e1316605042019072b5d7a0e@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <37e1316605042019072b5d7a0e@mail.gmail.com> cc: hackers@freebsd.org Subject: Re: KLD module with C++ iostreams ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David Leimbach List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2005 02:13:09 -0000 Interesting question. People usually have to implement the C++ runtime to be usable from within the kernel. Things like exceptions and "stdout" may not be defined in kernel space :) I'm not terribly familiar with how it works on FreeBSD but I know it took a special effort to get C++ support into linux. Dave On 4/20/05, Aziz KEZZOU wrote: > Hi hackers, > I am wondering if I can use c++ iostreams inside the kernel ? > After all the code : cout << "Hello world!" << endl; > ends accessing the stdout just like : printf("Hello world!\n"); right ? >=20 > So if I could compile my KLD module with static linkage to libstdc++, > that should be ok, right ? >=20 > Any one did or knows how to do this ? >=20 > Thanks, > -aziz > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " >