This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: problem with egcs...


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]