This is the mail archive of the
mailing list for the Cygwin project.
Re: windows dlls?
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Mike <mikee at mikee dot ath dot cx>
- Cc: cygwin at cygwin dot com
- Date: Fri, 3 Sep 2004 11:56:37 -0400 (EDT)
- Subject: Re: windows dlls?
- References: <20040903144342.GI16467@mikee.ath.cx>
- Reply-to: cygwin at cygwin dot com
On Fri, 3 Sep 2004, Mike wrote:
> I use an application that allows the calling of external, user
> created DLLs. I have created these DLLs previously using Microsoft's
> VC++. Can I instead create the DLLs using gcc/cygwin?
Yes. See <http://cygwin.com/cygwin-ug-net/dll.html>
> I'm a unixhead from way back and don't like the Microsoft stuff. I much
> prefer to stick with what I'm comfortable with.
> If I can create usable DLLs, what things must I be aware of?
The bad news is that the main Cygwin DLL (/bin/cygwin1.dll) cannot be
loaded dynamically from Windows programs (using LoadLibrary). Therefore,
any DLL depending on it won't be dynamically loadable either.
The good news is that you can use Cygwin gcc to create MinGW DLLs and
programs, and those won't depend on cygwin1.dll, so you'll be able to use
them from Windows programs. They probably would be better anyway, because
Windows would pass Win32 paths, etc, when calling the exported functions.
|\ _,,,---,,_ email@example.com
ZZZzz /,`.-'`' -. ;-;;,_ firstname.lastname@example.org
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing." -- Dr. Jubal Harshaw
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html