X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,TW_UU,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Hans Horn Subject: 64bit (g)fortran JNI Date: Tue, 12 Apr 2011 07:38:06 -0700 Lines: 32 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Folks, has anybody got any experience interfacing (g)fortran routines with Java via JNI? I'm on 64bit Windows7 using cygwin x86_64-w64-mingw32-gcc and x86_64-w64-mingw32-gfortran, both v4.5.2 Java: jdk-6u24-windows-x64 Even though I can statically link the JNI code successfully (using gfortran as linker), calling any native method from Java crashes the JVM - even when no fortran code is called at all. my compiler/linker flags are: gcc_opt = -O3 -std=c99 -DCYGWIN -Wl,--kill-at -mno-cygwin -shared -I${JAVA_HOME}/include/win32 -m64 gfc_opt = -O3 -fno-underscoring -fno-f2c -W -Wunused -Wuninitialized -m64 ld_opt = -luuid -lole32 -m64 Any clues? Thx., H. P.S. I'd posted this on the gfortran list, but the chaps there were too busy. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple