Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Getting dynamic loading to work on cygwin
- X-seq: zsh-workers 11732
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: Getting dynamic loading to work on cygwin
- Date: Fri, 02 Jun 2000 17:17:21 +0100
- In-reply-to: "Your message of Fri, 02 Jun 2000 08:16:15 PDT." <m2r9agun9c.fsf@xxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Maurice Barnum wrote:
> Data references can be imported on Win32, but you need help from the
> compiler to generate an extra indirection on access to the imported data.
> This of course implies that the compiler needs to know what data is
> being imported, which with normal Win32 compilers is indicated by
> decorating the extern declaration with '__import' or '__declspec(dllimport)'.
> I don't have cygwin or it's documentation handy, so I don't know if
> gcc supports this or some alternate spelling.
Aha!
extern int module_value __attribute__((__dllimport__));
This fixes things up. Thanks, that's exactly what we needed know --- this
can (eventually) be automated by dumping the appropriate declarations to
the prototype files.
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author