From: khan@xraylith.wisc.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.AAA18423@x12.dejanews.com>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
To: parab0la@my-dejanews.com
Cc: gnu-win32@cygnus.com

On Thu, 21 Jan 1999 parab0la@my-dejanews.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@cygnus.com" with one line of text: "help".
