[uClibc] Mini libstdc++

Michael O'Brien mob at mbedthis.com
Tue Jul 13 17:33:13 UTC 2004


I've had a few requests to post the source for the libstdc++ that we
use. I'm attaching it to this email and you can use it under the LGPL.
(The comments in the source refer to the GPL).

Now a bit of an explanation: 

This is very minimal. It only works if your C++ does not use exceptions
and does not use the standard IO library. We use C++ just to get classes
and some of the other language features (like inlining). If your C++
does much more than this, then this library will be insufficient.

What it does, is provide new, new[], delete, delete[] and a thing called
__cxa_pure_virtual(). You will need to edit the source to remove some of
the conditional compilation we use in AppWeb. After that, just compile
and link as a shared library.

We found that for our code, that was all that was required. Because
libstdc++ pulls in libm, we saved a lot.

I think a replacement for libstdc++ would be a good thing for uclibc and
I'd be happy to help and expand this source if others have minimal
requirements to make their apps work.

Cheers

Michael




-------------- next part --------------
A non-text attachment was scrubbed...
Name: stdcpp.cpp
Type: text/x-c++src
Size: 2587 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20040713/714defd0/attachment.cpp 


More information about the uClibc mailing list