delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <3BE1B0C5.7070207@media.mit.edu> |
Date: | Thu, 01 Nov 2001 15:29:57 -0500 |
From: | "Peter J. Gorniak" <pgorniak AT media DOT mit DOT edu> |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012 |
X-Accept-Language: | en-us |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | gcc and jni: one way street |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |