This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: GCJ 3.3.1 and JNI working under Cygwin?
- From: João Garcia <jgarcia at uk2 dot net>
- To: Martin Egholm Nielsen <martin at egholm-nielsen dot dk>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 14 Jun 2004 12:57:48 +0100
- Subject: Re: GCJ 3.3.1 and JNI working under Cygwin?
- References: <cajrqh$sld$1@sea.gmane.org>
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