From: khan AT xraylith DOT wisc DOT edu (Mumit Khan) Newsgroups: comp.os.msdos.djgpp Subject: Re: Creating a .dll Date: 6 Jul 1999 21:35:26 GMT Organization: Center for X-ray Lithography, UW-Madison Lines: 25 Message-ID: <7ltsqu$16ou$1@news.doit.wisc.edu> References: NNTP-Posting-Host: modi.xraylith.wisc.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article , LEONARD Daniel 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