开发者

JNI build with MinGW

开发者 https://www.devze.com 2023-04-09 08:06 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消