From: William Morgan <wmorgan@masanjin.net>
Subject: Re: cygwin auto-import scm_sys_protects
Date: Tue, 21 Jan 2003 10:22:27 -0500 [thread overview]
Message-ID: <20030121152227.GA2116@masanjin.net> (raw)
In-Reply-To: <200301211154.DAA18727@cmn14.stanford.edu>
Excerpts (reformatted) from Bill Schottstaedt's mail of 21 Jan 2003 (EST):
> This might save someone a few seconds -- in cygwin if you
> use scm_listofnull, the loader can complain:
>
> variable '_scm_sys_protects' can't be auto-imported.
>
> I got around it by using scm_cons(SCM_EOL, SCM_EOL) in place
> of scm_listofnull.
scm_sys_protects need to be declared "__declspec (dllexport) extern" in
the Guile root.h header file. CVS claims this has been in place since
November 2001, but I don't see it in Guile 1.6.1. Curious...
For the time being, if you put
#if (defined(_WIN32) || defined(__CYGWIN__))
__declspec (dllexport) extern scm_sys_protects;
#endif
early in your application code, you should be able to use scm_listofnull
(and friends) as normal. (I ended up having to do this for several
other global variables as well when I was compiling to cygwin.)
--
William <wmorgan@masanjin.net>
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
prev parent reply other threads:[~2003-01-21 15:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-21 11:54 cygwin auto-import scm_sys_protects Bill Schottstaedt
2003-01-21 15:22 ` William Morgan [this message]
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030121152227.GA2116@masanjin.net \
--to=wmorgan@masanjin.net \
/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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).