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

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


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.



More information about the Gcc-help mailing list