www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4EB51E2B.7070507@cs.umass.edu> |
Date: | Sat, 05 Nov 2011 06:29:47 -0500 |
From: | Eliot Moss <moss AT cs DOT umass DOT edu> |
Reply-To: | moss AT cs DOT umass DOT edu |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: JNI with g++ |
References: | <C1DA2237-F59A-43E1-9640-2C001E307738 AT flashpixx DOT de> |
In-Reply-To: | <C1DA2237-F59A-43E1-9640-2C001E307738@flashpixx.de> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 11/5/2011 5:22 AM, Kraus Philipp wrote: > Hello, > > I try to build under Cygwin a JNI shared library. I must use Cygwin because Atlas& LAPack can be compiled only under Cygwin without the -mno-cygwin flag. > So my library code will be compiled. I link to other Cygwin compiled libraries (*.dll) and some static libs. If I run my Java example I see with the Sysinternal > ProcessExplorer that the libraries will be loaded but the library function(s) won't be run. The code does not create any exception or anything else, only > the function code does not run. > > Is there any difference for the linker? All libs are compiled under Cygwin so, if I use them under an executable everything works fine. > > Hope anybody can help me with this strange problem !? Assuming that you're talking about Oracle/Sun Java, cygwin libs won't run with it -- Java is not a cygwin app but a regular Windows app. Its run=time environment is totally different. You have to figure a way to build with no-cygwin using some toolset or other ... Regards -- Eliot Moss -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |