This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: windows dlls?

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 <>

> 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.
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,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:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]