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 <[EMAIL PROTECTED]> 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 ?
> 
> Thanks,
> -aziz
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to