problem with egcs...
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Fri Dec 31 23:54:00 GMT 1999
> 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
More information about the Gcc
mailing list