delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/03/11:56:44

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 3 Sep 2004 11:56:37 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Mike <mikee AT mikee DOT ath DOT cx>
cc: cygwin AT cygwin DOT com
Subject: Re: windows dlls?
In-Reply-To: <20040903144342.GI16467@mikee.ath.cx>
Message-ID: <Pine.GSO.4.61.0409031142500.10783@slinky.cs.nyu.edu>
References: <20040903144342 DOT GI16467 AT mikee DOT ath DOT cx>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

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.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,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
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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