KLD module with C++ iostreams ?
dleimbac at gmail.com
Wed Apr 20 19:13:09 PDT 2005
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.
On 4/20/05, Aziz KEZZOU <opensource.enthousiat at 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 ?
> So if I could compile my KLD module with static linkage to libstdc++,
> that should be ok, right ?
> Any one did or knows how to do this ?
> freebsd-hackers at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
More information about the freebsd-hackers