using Cygwin (-mno-cygwin) to JNI to a 3rd party DLL

Larry Hall (Cygwin)
Wed May 2 00:34:00 GMT 2007

On 05/01/2007, Pete Flugstad wrote:
> On 5/1/07, Brian Dessent <brian AT dessent DOT net> wrote:
<>.  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
 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

Larry Hall                    
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:
Problem reports:

More information about the Cygwin mailing list