This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: undefined reference problem
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Andre Kirchner <supercroc1974 at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 21 Jul 2004 12:16:06 +0100
- Subject: Re: undefined reference problem
- References: <20040720193418.50247.qmail@web50510.mail.yahoo.com>
Andre Kirchner <supercroc1974@yahoo.com> writes:
> What is this undefined reference to
> `__gxx_personality_v0, and how do I fix it?
> The following is the code of main.cpp, Connecot.h and
> Connector.cpp if it may help you to find the problem.
__gxx_personality_v0 is an internal symbol used by g++. It is defined
inside the C++ standard library libstdc++.
When you try to make an executable with 'gcc' it only links against
the standard C libraries (not libstdc++) so you have to have to use
g++ to link everything correctly for C++.
--
Brian Gough
Network Theory Ltd,
Publishing "An Introduction to GCC" --- http://www.network-theory.co.uk/