让JNI在netbeans中工作

时间:2015-01-14 16:11:19

标签: java c++ netbeans netbeans-8

嗨,当我尝试建立这个设置JNI的项目时我得到这个错误我真的很新,所以任何帮助都会很棒我已经尝试了4天我完全失去了

这是错误

"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/cygdrive/c/Users/brett/Documents/NetBeansProjects/HelloWorldNative'
"/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/HelloWorldNative.dll
make[2]: Entering directory '/cygdrive/c/Users/brett/Documents/NetBeansProjects/HelloWorldNative'
mkdir -p build/Debug/Cygwin-Windows
rm -f "build/Debug/Cygwin-Windows/HelloWorldNative.o.d"
gcc -mno-cygwin -Wl,--add-stdcall-alias -shared -m32   -c -g -I../../../../../Program\ Files/Java/jdk1.8.0_20/include -I../../../../../Program\ Files/Java/jdk1.8.0_20/include/win32  -MMD -MP -MF "build/Debug/Cygwin-Windows/HelloWorldNative.o.d" -o build/Debug/Cygwin-Windows/HelloWorldNative.o HelloWorldNative.c
gcc: error: unrecognized command line option '-mno-cygwin'
nbproject/Makefile-Debug.mk:66: recipe for target 'build/Debug/Cygwin-Windows/HelloWorldNative.o' failed
make[2]: *** [build/Debug/Cygwin-Windows/HelloWorldNative.o] Error 1
make[2]: Leaving directory '/cygdrive/c/Users/brett/Documents/NetBeansProjects/HelloWorldNative'
nbproject/Makefile-Debug.mk:59: recipe for target '.build-conf' failed
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory '/cygdrive/c/Users/brett/Documents/NetBeansProjects/HelloWorldNative'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make: *** [.build-impl] Error 2

我不知道为什么会这样,我已经满足了所有包含但仍然无法编译

0 个答案:

没有答案