delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/01/20:34:42

X-Spam-Check-By: sourceware.org
Message-ID: <4637DC83.1090406@cygwin.com>
Date: Tue, 01 May 2007 20:34:11 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070308 Fedora/1.5.0.10-2.fc4.remi Thunderbird/1.5.0.10 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: using Cygwin (-mno-cygwin) to JNI to a 3rd party DLL
References: <84d4a6d50705011311m24edaf7dw73f40a72bc4a750e AT mail DOT gmail DOT com> <4637A234 DOT A44A5BCC AT dessent DOT net> <84d4a6d50705011517u77d03a34m3fc1d97eeaa7cd31 AT mail DOT gmail DOT com>
In-Reply-To: <84d4a6d50705011517u77d03a34m3fc1d97eeaa7cd31@mail.gmail.com>
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 05/01/2007, Pete Flugstad wrote:
> On 5/1/07, Brian Dessent <brian AT dessent DOT net> wrote:
                            ^^^^^^^^^^^^^^^^^^^^^^^^
<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks,

> > You'll have to run this in a debugger to be sure, but I'd start looking
> > at calling convention clashes, i.e. stdcall vs cdecl.  This should be a
> > function of the header files and how they declare prototypes.
> 
> The thing that's odd is that without the 3rd party DLL present, everything
> works just fine.  My JNI functions are called and work (just debug printouts
> in that case).  Only when I actually call the 3rd party DLL (and obviously
> I'm linking against it), does it fail - and it fails before it even
> tries to call
> a function - during the loading phase.

I think the questions you need to ask yourself are:

 o What are you using in place of the 3rd party DLL in the cases where it
   works?
 o How was it compiled?
 o How well do those settings match what the 3rd party DLL used?

Depending what the answers are, it may well describe your successes and
failures.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019