[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cygwin auto-import scm_sys_protects
From: |
William Morgan |
Subject: |
Re: cygwin auto-import scm_sys_protects |
Date: |
Tue, 21 Jan 2003 10:22:27 -0500 |
User-agent: |
Mutt/1.4i |
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 <address@hidden>