When compiling JNI code in Linux RedHat, I get the following error:
/usr/java/j2sdk1.4.2_16/include/jni.h:39: error: conflicting types for
'jboolean'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/jni_md.h:84: error: previous
declaration of 'jboolean' was here
I need the compiler to pick the Sun's declaration, and not that one from gcc. I
have -I/usr/java/j2sdk1.4.2_16/include in my options.
Is there any workaround for this?
--
Summary: previous declaration of jboolean
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: yalbasilva at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35089