Mail Archives: djgpp/1999/07/07/00:06:12
In article <Pine DOT SGI DOT 3 DOT 96 DOT 990706172053 DOT 13269C-100000 AT epsom DOT jsp DOT umontreal DOT ca>,
LEONARD Daniel <leonard AT JSP DOT UMontreal DOT CA> wrote:
>I want to create a DLL for a java project. The only problem is that I do
>not know the command line parameters to create this library.
>
>So far, I have figured out
>
>gcc -Ie:\java\jdk1.2\include -Ie:\java\jdk1.2\include\win32 -c test.c -o
>test.dll
>
>but I am not sure about the -c test.c
>
>Also, gcc complains a lot about jni.h, mostly parse errors.
jni.h uses __int64, which is MSVC specific. It's a trivial patch to
use "long long" instead for GCC.
For JNI with GCC example (includes patch to Java header), see:
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/
Regards,
Mumit
- Raw text -