Re: Problems with jdk1.1.3 and JNI
> gcc -shared -I/usr2/programs/jdk1.1.3/include -I/usr2/programs/jdk1.1.3/incl
> ude/genunix -o libGroup.so javaQ_groups_Group.c
Hi.
This is not the right way to generate shared library. What you got here
is plain objet file (.o) named as shared lib.
The correct way is:
gcc -fPIC -c -I<.....> javaQ_groups_Group.c
gcc -shared -Wl,-soname,libGroup.so.1 -o libGroup.so.1 javaQ_groups_Group.o
ln -s libGroup.so.1 libGroup.so
Hope this helps.
Alex Y.
--
_
_( )_
( (o___ +-------------------------------------------+
| _ 7 | Alexander Yukhimets |
\ (") | http://pages.nyu.edu/~aqy6633/ |
/ \ \ +-------------------------------------------+
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: