delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/04/08/10:44:02

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199904081441.JAA12430@modi.xraylith.wisc.edu>
X-Authentication-Warning: modi.xraylith.wisc.edu: localhost.xraylith.wisc.edu [127.0.0.1] didn't use HELO protocol
To: jon AT bigbang DOT com DOT au (Jon Wells)
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Loading a cygwin generated dll from a non-cygwin app
In-reply-to: Your message of "Thu, 08 Apr 1999 18:03:53 +1000."
<9904080803 DOT AA06196 AT homestead DOT bigbang DOT com DOT au>
Date: Thu, 08 Apr 1999 09:41:48 -0500
From: Mumit Khan <khan AT xraylith DOT wisc DOT EDU>

jon AT bigbang DOT com DOT au (Jon Wells) writes:
> G'day,
>   I've been messing with this all day and to get it to work I had to
> set the dll's entry point to __cygwin_noncygwin_dll_entry.
> 
> Does that make sense? 

That's why it's called that ... it was a hack we had to add to
b20.1 to allow loading of Cygwin DLLs from non-cygwin apps work
(eg., Java JNI's, Excel DLLs, Netscape plugins, etc). 

There has been some discussions about this in the mailing list.

> Doesn't this mean that a dll can't be loaded by both cygwin and
> non-cygwin apps.. or is there more magic in there???

The only other choice, and it was the case with my first patch 
to handle this, breaks binary compatibility and that's obviously
a no-no between b20 and b20.1.

This is fixed in b21, where the same entry point should suffice.
I haven't tested the snapshots, but the code looks ok.

> If this is what's s'pose to happen then maybe it'd be worth a mention
> in the FAQ or Mumit's dllhelpers or someplace... or any place other
> than ``gee I wonder what happens if I call that one instead.''

Hmmm ... I thought I had this peperred in my various examples, but
unfortunately those are the examples in Java-jni and excel. Thanks
for mentioning this; I'll add this to dllhelpers as well.

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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