This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCJ 3.3.1 and JNI working under Cygwin?


Hi,

For the first command I get:
$ gcc -I/cygdrive/c/j2sdk1.4.2/include/ -I/cygdrive/c/j2sdk1.4.2/include/win32/ -I. -c JNITest.c
In file included from /cygdrive/c/j2sdk1.4.2/include/jni.h:27,
from JNITest.c:8:
/cygdrive/c/j2sdk1.4.2/include/win32/jni_md.h:16: error: syntax error before "jlong"
/cygdrive/c/j2sdk1.4.2/include/win32/jni_md.h:16: warning: data definition has no type or storage class
It seems that you don't have __int64 type defined.
 From win32.h (cygwin system include files) you have:
#  ifndef __int64        /* some versions seem to #define it already */
#    define __int64 long long
#  endif
Try to put that definition before #include <jni.h>
Well, now it compiles, yes. But I still cannot execute the JNI-application (UnsatisfiedLinkError)...

My gcj is:
gcj (GCC) 3.3.1 (cygming special)

maybe that's it?!

// Martin



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]