This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35089] New: previous declaration of jboolean
- From: "yalbasilva at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Feb 2008 14:31:44 -0000
- Subject: [Bug c/35089] New: previous declaration of jboolean
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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