Joseph Prabhu C
Joseph Prabhu C

Reputation: 111

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

I am trying to compile a C program which uses Java's JNI header jni.h, but I am getting the following error:

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

I am using the 64 bit JDK, so I don't understand why this is happening.

Upvotes: 6

Views: 9141

Answers (2)

176coding
176coding

Reputation: 3069

you should download a 64bit mingw version at https://sourceforge.net/projects/mingw-w64/

download the exe installer

Upvotes: 1

Joseph Prabhu C
Joseph Prabhu C

Reputation: 111

The problem turned out to be that I was using the 32-bit version of MinGW GCC. On updating to the 64-bit compilers, the error went away.

Upvotes: 4

Related Questions