This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: problem with egcs...
- To: sme at nycap dot rr dot com
- Subject: Re: problem with egcs...
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Wed, 22 Dec 1999 12:12:08 +0100
- CC: gcc at gcc dot gnu dot org
- References: <386036CA.7F4C7D5@nycap.rr.com>
> I get the following linker error:
>
> main.o: In function `main':
> /.../main.cpp:24: undefined reference to `__eh_pc'
> collect2: ld returned 1 exit status
My guess is that you are not using egcs 1.1, but egcs 1.0 or g++ 2.8.1
for some reason to compile main.o. Please use g++ -v to find the
compiler version you are using.
If that does not solve the problem, please follow the instructions at
http://egcs.cygnus.com/faq.html#bugreport
In this case, we'd also need the assembler output (also obtained by
--save-temps).
Hope this helps,
Martin