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]

JNI problem


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 )






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