X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: =?utf-8?b?SsO4cmdlbg==?= Steensgaard-Madsen <jsm@steensgaard.org>
Subject:  Re: Initialisation with data from dll-libraries
Date: Sun, 2 Apr 2006 20:00:58 +0000 (UTC)
Lines: 23
Message-ID:  <loom.20060402T215306-271@post.gmane.org>
References:  <loom.20060401T110030-920@post.gmane.org> <442FF2BB.10307@cygwin.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=utf-8
Content-Transfer-Encoding:  8bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Larry Hall (Cygwin <reply-to-list-only-lh <at> cygwin.com> writes:

> 
> Jørgen Steensgaard-Madsen wrote:
> > Asking for help.
> 
> You haven't said where the dispatch table is or how it is supposed to filled
> in.  

First of all, thanks for reacting so promptly.

The dispatch table is an array of pointers in a C-program file to be linked
against the libraries.  Initialised is expressed as a usual array declaration
initialised with individual entries given as 

    &some_function

where some_function is declared as extern in the same file.  This methods works
nicely with static linkage, and also with dynamic linkage on a Linux box.

Jørgen




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

