This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
gcc and jni: one way street
- To: cygwin at cygwin dot com
- Subject: gcc and jni: one way street
- From: "Peter J. Gorniak" <pgorniak at media dot mit dot edu>
- Date: Thu, 01 Nov 2001 15:29:57 -0500
I've compiled a dll using gcc-2.95.3-5 for use with JNI under
jdk1.3.1_01. I can call the functions in this dll from java, no problem.
What I cannot do is successfully use the JDK JNI functions (like
SetIntField) from inside the dll functions - they usually crash the vm.
I assume this has something to do with the way jvm.dll exports its
symbols, but how do I convince my dll to call them correctly?
I simply link using -shared and no special export markers for symbols.
Thanks,
Peter
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/