X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: =?utf-8?b?SsO4cmdlbg==?= Steensgaard-Madsen Subject: Re: Initialisation with data from dll-libraries Date: Sun, 2 Apr 2006 20:00:58 +0000 (UTC) Lines: 23 Message-ID: References: <442FF2BB DOT 10307 AT cygwin DOT 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 AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Larry Hall (Cygwin 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/