error when system.load()

Jharana jharana at mahindrabt.com
Fri Nov 30 01:34:53 PST 2001


hi,
try using the ld -G x.o -o libx.so instead of ld - shared, or try the
g++ -shared -L command.
hope this helps, bye,
Jharana

Dorothy Wu wrote:

> hi,I met a problem when I use JNI. I wrote two shared libraries
> (c/c++).Then I used them in my c/c++ application.Everything is Ok, my
> c/c++ application can use these libraries. But when I use it in kaffe
> by JNI,Only one library can load, another can never loaded by
> System.load().Error is:"UnsatisfiedLinkError: file not found." I have
> checked the path, everything is OK.The difference between these two
> libraries is, the latter do not link any library.The link command
> is:"ld -shared --whole-archive x.o y.o -o libxy.so"I do not think it
> is the reason why I can not load it. But why, it is a bug of
> System.load()? Thanks! Stock Wu

*********************************************************
Disclaimer

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*********************************************************
Visit us at http://www.mahindrabt.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://kaffe.org/pipermail/kaffe/attachments/20011130/0e949dda/attachment-0010.htm 


More information about the kaffe mailing list