Hi Denis.

You should build your library using g++ instead of ld.
The reason is that g++ links additional object files that
are essencial for a library to work well (namely, crtbegin.o,
crtend.o, crti.o, and crtn.o).

Try:

g++ -fPIC -I[jdk-root]/include -I[jdk-root]/include/genunix Load.cc Load.o
g++ -shared Load.o -o libLoad.so

Hope this helps.

-- Cassino

Reply via email to