delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/07/00:06:12

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: <Pine DOT SGI DOT 3 DOT 96 DOT 990706172053 DOT 13269C-100000 AT epsom DOT jsp DOT umontreal DOT ca>
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 <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 -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019