This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -nodefaultlibs and gxx_personality
- From: Ian Lance Taylor <iant at google dot com>
- To: Ivan Novick <ivandn at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 14 May 2007 11:23:25 -0700
- Subject: Re: -nodefaultlibs and gxx_personality
- References: <20070514030412.13186.qmail@web34309.mail.mud.yahoo.com>
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