MingW GCC sorry, not implemented: 64-bit mode is not compiled in #include <jni.h>

I am trying to compile a C program that uses the Java JNI header jni.h , but I get the following error:

 sorry, unimplemented: 64-bit mode not compiled in #include <jni.h> 

I am using a 64-bit JDK, so I do not understand why this is happening.

+5
source share
2 answers

The problem turned out to be that I used the 32-bit version of MinGW GCC. When upgrading to 64-bit compilers, the error disappeared.

+3
source

you must download the 64-bit version of mingw at https://sourceforge.net/projects/mingw-w64/

download exe installer

+1
source

All Articles