UnsatisfiedLinkError (gxx and gcj) with JNI and C++ but not C

Jonathan Wakely jwakely.gcc@gmail.com
Sun Feb 27 18:16:00 GMT 2011


On 27 February 2011 18:09, Jonathan Wakely wrote:
> On 27 February 2011 17:35, Andrew Richardson wrote:
>> Good observation. I added '-l stdc++' to the ld call. I also had to add a symlink in /usr/lib (it only contained libstdc++.so.6 and libstdc++.so.6.14. I added libstdc++.so --> libstdc++.so.6)
>
> The missing symlink implies you haven't installed the right packages,
> on my Fedora system it would be provided by libstdc++-devel, which
> also installs libsupc++.a and other C++ runtime files.
>

I don't know which library provides the gcj_personality routines, but
you might want the equivalent of libgcj-devel as well



More information about the Gcc-help mailing list