From: Peter Stephenson <pws@cambridgesiliconradio.com>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Re: Getting dynamic loading to work on cygwin
Date: Fri, 02 Jun 2000 17:17:21 +0100 [thread overview]
Message-ID: <0FVJ00HL2BWX18@la-la.cambridgesiliconradio.com> (raw)
In-Reply-To: "Your message of Fri, 02 Jun 2000 08:16:15 PDT." <m2r9agun9c.fsf@bloodbath.burble.org>
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@cambridgesiliconradio.com>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
next prev parent reply other threads:[~2000-06-02 16:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-02 11:03 Peter Stephenson
2000-06-02 13:43 ` Peter Stephenson
2000-06-02 14:19 ` Andrej Borsenkow
2000-06-02 15:00 ` Peter Stephenson
2000-06-02 15:16 ` maurice s. barnum
2000-06-02 16:17 ` Peter Stephenson [this message]
2000-07-06 10:15 ` Andrej Borsenkow
2000-07-06 11:07 ` Peter Stephenson
2000-06-02 14:11 ` Use and abuse of dynamic loading " Andrej Borsenkow
2000-06-02 14:24 ` Peter Stephenson
2000-06-02 14:52 ` Use and abuse of dynamic loading RE: Getting dynamic loading towork " Andrej Borsenkow
2000-06-06 21:52 ` Fletch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0FVJ00HL2BWX18@la-la.cambridgesiliconradio.com \
--to=pws@cambridgesiliconradio.com \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).