X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
From: Kraus Philipp <philipp.kraus@flashpixx.de>
Content-Type: text/plain; charset=us-ascii
Subject: JNI with g++
Date: Sat, 5 Nov 2011 11:22:55 +0100
Message-Id: <C1DA2237-F59A-43E1-9640-2C001E307738@flashpixx.de>
To: cygwin@cygwin.com
Mime-Version: 1.0 (Apple Message framework v1084)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id pA5ANKCC008426

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 !?

Thanks

Phil

--
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


