在Windows下面使用cygwin将含有JNI的C文件编译成DLL文件
摘要:
生成JNI的DLL时提示找不到jni.h的解决办法Cannot open include file: 'jni.h': No such file or directory在Windows下面:gcc -mno-cygwin -I/cygdrive/f/Java/jdk1.7.0/include --I/cygdrive/f/Java/jdk1.7.0/include/win32 -Wl,--add-stdcall-alias -shared -o hellojni.dll hellojni.c说明:#-mno-cygwin必须填#-I表示引入头文件位置#-Wl,--add-s 阅读全文
posted @ 2013-01-07 15:51 adm1989 阅读(425) 评论(0) 推荐(0)
浙公网安备 33010602011771号