GCJ 3.3.1 and JNI working under Cygwin?
João Garcia
jgarcia@uk2.net
Mon Jun 14 11:59:00 GMT 2004
Hi,
Martin Egholm Nielsen wrote:
> $ gcc -c JNITest.c (Implemented JNITest.h-methods)
> $ gcc -o JNITest.dll -shared JNITest.o
>Please try this (it works for me with gcj 3.3.1 MinGW -- I have never tried it with Cygwin though):
$ gcc -I/c/j2sdk1.4.2/include -I/c/j2sdk1.4.2/include/win32 -I. -c JNITest.c (adjust the path to point to your Sun JDK)
$ gcc -Wall -shared -o JNITest.dll -D_JNI_IMPLEMENTATION_ -Wl,--kill-at JNITest.o
Regards,
Joao
More information about the Java
mailing list