RFC: Why are -lsupc++ -lstdc++ needed when linking java programs?
Thu Oct 2 17:20:00 GMT 2003
Andrew Haley wrote:
> > The problem seems to be that some of the 'C++' files in libgcj require
> > the C++ runtime (at least for the mipsel-linux target), but it is not
> > being linked by the gcj driver.
>Well, I don't think they require it. However, it is undeniably being
>`__cxa_call_unexpected' isn't called from anywhere in libgcj in i386
>Linux, at least not on my system. So, you need to isolate the place
>where it's being called, preferably with assembly language output from
>The call to `__cxa_call_unexpected' is generated when
>-fenforce-eh-specs is used. Try building libgcj with -fno-enforce-eh-specs.
The problem was in the compiler backend.
I anticipate that Richard Sandiford will be committing the patch soon.
More information about the Java