On Wed, Mar 12, 2003 at 05:09:25PM +0100, Max Kellermann wrote:
>
> You are not required to link the C++ library if you don't use it. No
> overhead here.

This is correct, but if you don't link to the C++ library you need to
provide replacements for some built-in functions like the new and
delete operator. G++ also complains about an undefined reference to
"__gxx_personality_v0", but this can be avoided by disabling
exceptions. The danger with not using the standard C++ library is that
it might harm portability, but I don't really know much about this. Of
course, one could always link with the C++ library as a fallback on
"unsupported" compilers/platforms.

/Pelle

Reply via email to