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: Initialisation with data from dll-libraries


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/


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