delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/13/12:11:57

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: Tue, 13 Jul 2004 18:11:41 +0200
From: "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de>
Reply-To: "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de>
Organization: Esse keine toten Tiere
Message-ID: <14424054438.20040713181141@familiehaase.de>
To: Maarten Boekhold <boekhold AT emirates DOT net DOT ae>
CC: cygwin AT cygwin DOT com
Subject: Re: dlopen under cygwin
In-Reply-To: <40F3FE73.8030906@emirates.net.ae>
References: <40F3FE73 DOT 8030906 AT emirates DOT net DOT ae>
MIME-Version: 1.0

Maarten wrote:

> Hi all,

> Is dlopen() & friends supported under cygwin? If so, is the DLL that 
> gets loaded using dlopen() a regular Win32 DLL, or a 'special' type of
> cygwin DLL?

dlopen() works and one should use it.

> Reason I ask it that (while trying to get 'plugins' to work under 
> cygwin) I had a look at the gmodule source code of glib, and it seems 
> that gmodule uses regular Win32 LoadLibrary() calls to load the DLL, 
> instead of calling dlopen(). I was wondering if that it actually correct.

This seems to work too, but is it not portable, dlopen() is used for
Linux applications and needs not to be ported when building with
Cygwin, it just works the same way as for Linux.


Gerrit
-- 
=^..^=                                     http://nyckelpiga.de/donate.html


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