unsatisfied link error when I run using cygwin but using visual studio it
is running properly
I try to run a sample JNI program in windows using cygwin, I am getting
unsatisfiedLinkError JNItest.javatoC()V where JNItest is the class and
javatoC() is the native method, I compiled using the command "gcc
-mno-cygwin -I$jdk/include -I$jdk/include/win32 -Wl,--add-stdcall-alias
-shared -o HelloWorld.dll HelloWorld.c". But when i compile the same using
Visual studio its running properly and the command is "cl"C:\Program
Files\Java\jdk1..0_45\include"
-I"C:\ProgramFiles\Java\Jdk1.6.0_45\include\win32" -LD Jni.c -Jni.dll".
Can someone tell me where the problem is, whether in cygwin or in
compilation?
No comments:
Post a Comment