Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Apr 2005 19:13:08 -0700
From:      David Leimbach <dleimbac@gmail.com>
To:        Aziz KEZZOU <opensource.enthousiat@gmail.com>
Cc:        hackers@freebsd.org
Subject:   Re: KLD module with C++ iostreams ?
Message-ID:  <5bbfe7d4050420191316a629b7@mail.gmail.com>
In-Reply-To: <37e1316605042019072b5d7a0e@mail.gmail.com>
References:  <37e1316605042019072b5d7a0e@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <opensource.enthousiat@gmail.com> 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=
"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5bbfe7d4050420191316a629b7>