zsh-workers
 help / color / mirror / code / Atom feed
From: pixi@burble.org (maurice s. barnum)
To: Peter Stephenson <pws@cambridgesiliconradio.com>
Cc: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Re: Getting dynamic loading to work on cygwin
Date: 02 Jun 2000 08:16:15 -0700	[thread overview]
Message-ID: <m2r9agun9c.fsf@bloodbath.burble.org> (raw)
In-Reply-To: Peter Stephenson's message of "Fri, 02 Jun 2000 16:00:46 +0100"

Peter Stephenson <pws@cambridgesiliconradio.com> writes:

: > If I recall correctly, there is no way to export data references; only
: > subroutines entry points can be exported. I.e. one DLL cannot directly
: > reference variable in other DLL. But I may be wrong.
: 
: Yuk, it looks like your right.  Using dlsym to get the symbol works OK, but
: simply linking against the DLL and loading it doesn't seem to pick up the
: right value.  That will screw up a lot of things.

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.

 --xmsb


  reply	other threads:[~2000-06-02 15:40 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 [this message]
2000-06-02 16:17         ` Peter Stephenson
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=m2r9agun9c.fsf@bloodbath.burble.org \
    --to=pixi@burble.org \
    --cc=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).