This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libsupc++
Richard Henderson <rth@redhat.com> writes:
> On Thu, Jun 28, 2001 at 01:14:18PM -0700, Philippe Troin wrote:
> > What's libsupc++ for BTW ?
>
> Embedded systems. It provides just enough of the C++ runtime to
> support the code emitted by the compiler, omitting everything
> associated only with the standard C++ library.
I thought this was libgcc_s ?
I've noticed that some programs which do not use the standard c++
library but use exceptions and RTTI used to compile without linking
with libstdc++ in 2.95.x. With 3.0, I have to use libstdc++ to enable
RTTI and exception handling.
So, you're saying that if I'm just using exceptions, RTTI, but no
other stuff, I might be able to link with libsupc++ rather than
libstdc++ ? Something like:
gcc -o foo foo.cpp -lsupcc++
Is libsupc++ a strict subset of libstdc++ ?
Can I link with both supc++ and stdc++ ? Does it make sense ?
(Methinks no).
So what is libgcc_s for then ?
Thanks,
Phil.