Hi,

I am new to these forums and I am currently trying to solve a JNI-related issue
The issue is that,

1) I have compiled a cython script to a C file called aaa.c
2) I have created a jjj.java file , which I then used to create my bbb.h file (using javah)
3) Created a bbb.c file
4) created aaa.o and bbb.o object files.
5) created a shared library using the following command
gcc -shared aaa.o bbb.o -lpython2.7 -o mainlib.so

So, mainlib.so gets created...However when I try to do a "java jjj" , I get a linker error

Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib64/libnameparser.so: /usr/lib64/libnameparser.so: undefined symbol: _Py_ZeroStruct
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.jav a:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1857)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)

I would be grateful if someone could kindly shed some light on this issue

regards
Tej