This is the mail archive of the gcc-help@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]
Other format: [Raw text]

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


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.


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