www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/21/16:40:58

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: Cygnus gcc and JNI
21 Jan 1999 16:40:58 -0800 :
Message-ID: <Pine.SUN.3.93.990121131441.26249B-100000.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <199901210654 DOT AAA18423 AT x12 DOT dejanews DOT com>
Mime-Version: 1.0
To: parab0la AT my-dejanews DOT com
Cc: gnu-win32 AT cygnus DOT com

On Thu, 21 Jan 1999 parab0la AT my-dejanews DOT com wrote:

> When calling native functions written in C in Java, we have to create a shared
> library according to the JNI doc.  That shared library would be a .dll file
> under Win32 and a .so file under Solaris.
> 
> My question is, under Win32, can the Cygnus gcc that comes with Cygwin be used
> to compile a .dll file suitable for JNI framework?

Yes, it works. I've packaged up two simple examples on how to do this.

See ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin/misc/

It provides two examples, one in C and the other in C++. You MUST have
Cygwin B20.1 (B20 is not sufficient).

Regards,
Mumit


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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