Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" 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 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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/