I have a problem with building a dll with gcc (mingw). From this site I read how to do it : http://www.mingw.org/node/41
and the problem is that the file jni.h cannot be found unless it is in current folder where is the java file, the header c file and c file. S开发者_如何学Pythono my question is how to compile the source file *.c with gcc and to include the path to the file jni.h and jni_md.h with no error occurred?
Thanks in advance.
You can use -I switch to locate jni.h file. For more information read this
精彩评论