This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
JNI problem
- To: help-gcc at gnu dot org
- Subject: JNI problem
- From: Brian Youmans <3diff at gnu dot org>
- Date: Wed, 18 Oct 2000 16:05:03 +0800
- Organization: Singapore Telecommunications Ltd
Hi All
I am doing a project on JNI.My work is to use a set of C APIs
present in an archive file and use jni code to call that api and perform the
respected action.I got problem while forming the shared library.Because the
API I am calling is thrown as a run time error like "relocation error
/XXX.so and symbol API name :not found (XXX.so).I came to a conclusion that
I didn't include my C APIs archive file properly.Did anybody face this kind
of problem please let me know about.I compiled the program as follows.
gcc -G -I/java -I/java/solaris -I/archivefile XXX.c -o
libSharedfilename.so.
Anything more required please let me know.
Thanks
Prasad(prasad_as@hotmail.com or prasad@secureasia.com )