This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: undefined reference problem
- From: Falk Hueffner <hueffner at informatik dot uni-tuebingen dot de>
- To: Andre Kirchner <supercroc1974 at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 20 Jul 2004 22:01:09 +0200
- Subject: Re: undefined reference problem
- References: <20040720193418.50247.qmail@web50510.mail.yahoo.com>
Andre Kirchner <supercroc1974@yahoo.com> writes:
> I made this simple C++ program, but when I try to
> compile it, gcc returns the followinf error message:
>
> gcc -c Connector.cpp
> gcc -c main.cpp
> gcc ./*.o -o main.out
> ./main.o(.eh_frame+0x11): undefined reference to
> `__gxx_personality_v0'
> collect2: ld returned 1 exit status
Link with g++ instead of gcc.
--
Falk