-nodefaultlibs and gxx_personality

Ian Lance Taylor iant@google.com
Mon May 14 18:23:00 GMT 2007


Ivan Novick <ivandn@yahoo.com> writes:

> I am trying to use -nodefaultlibs to exclude libstdc++
> but something is trying to call `__gxx_personality_v0'
> which is in libstdc++.  How can one compile a simple
> C++ program without linking against libstdc++?

Link against -lsupc++.  This is a smaller library which includes the
basic supporting functions required to support exception handling.  It
does not include the STL.

Ian



More information about the Gcc-help mailing list