I created a header file and the corresponding .c file full of functions that I would like to use with a java program. I created a JNI header file using javah. I use gcc to compile my header file. How to link my regular c object file to my static JNI library to get a static library that uses my C library? I use gcc to compile.
Here is an example of what I'm asking:
lib.h lib.c JNITest.h JNITest.c (uses lib.h functions)
Landonchropp
source share