Cygnus gcc and JNI

Mumit Khan khan@xraylith.wisc.edu
Sun Jan 31 23:52:00 GMT 1999


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".



More information about the Cygwin mailing list