This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: cygwin compiled DLLs
- To: mbrett at cu dot rpms dot ac dot uk (Matthew Brett)
- Subject: Re: cygwin compiled DLLs
- From: Mumit Khan <khan at xraylith dot wisc dot edu>
- Date: Tue, 15 Dec 1998 00:32:31 -0600
- cc: gnu-win32 at cygnus dot com
mbrett@cu.rpms.ac.uk (Matthew Brett) writes:
> Dear Mumit / fellow DLL sufferers,
>
> Thanks for all your stuff on DLLs on the list, which has been very
> helpful. Sadly, though, I am still stuck trying to link a
> Cygwin DLL to a Visual C calling program (and also get a working
> matlab mex file from Cygwin, which was my main aim).
>
> I am using b20.1 on NT4 sp3 FAT, and VC++ 4.2.
>
> I think I have tried everything in the dllhelpers 0.2.1 package,
> and still get invalid memory references as soon as I try and
> access any DLL routine, from a VC binary. I've attached the
> very simple code that I have been using.
Hi Matthew,
With b20.1, you can *dynamically* load Cygwin DLL (at least a few
that I've tested) from MSVC compiled apps, but you do need to build
it with a different entry point. However, I doubt if you can *link*
against a cygwin DLL with a MSVC ones without jumping through hoops
(and it may still not work in general).
If you're happy with using GetProcAddress/LoadLibrary, I can send
you an updated example of how to do this (this will be in the next
dll-helpers, whenever that will happen I don't know).
Regards,
Mumit
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".