Subject: Re: Cygnus gcc and JNI
From: [email-masked] (Mumit Khan)

21 Jan 1999 16:40:58 -0800
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
To: [email-masked]
Cc: [email-masked]

On Thu, 21 Jan 1999 [email-masked] 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
"[email-masked]" with one line of text: "help".