typedef conflict in GCC and JAVA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have GCC 4.1.1. I am trying to compile one C++ code using g++.

I am wondering what's the use of the following file?

usr/lib/gcc/x86_64-redhat-linux/4.1.1/include/jni_md.h

As you can see this is in the gcc related include directory. But I am
getting compilation errors due to this file. The thing is one of the
datatypes defined in this header file is creating conflict with other
datatype with the same name in another Java related headerfile (file
and path shown below):-

/opt/jdk1.5/include/jni.h

The actual conflict is:-

The file jni.h has the following declaration:- 

typedef unsigned char   jboolean;

Whereas in the file jni_md.h there is following declaration(s):-

typedef int    jboolean __attribute__((__mode__(__QI__)));
typedef int8_t jboolean;


The compilation error I get is this:-

error: ?jboolean? has a previous declaration as ?typedef signed char
jboolean?


Can someone pls explain?

Thanks,
-Dhiraj


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux