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,

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




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