unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* cygwin auto-import scm_sys_protects
@ 2003-01-21 11:54 Bill Schottstaedt
  2003-01-21 15:22 ` William Morgan
  0 siblings, 1 reply; 2+ messages in thread
From: Bill Schottstaedt @ 2003-01-21 11:54 UTC (permalink / raw)


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.


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cygwin auto-import scm_sys_protects
  2003-01-21 11:54 cygwin auto-import scm_sys_protects Bill Schottstaedt
@ 2003-01-21 15:22 ` William Morgan
  0 siblings, 0 replies; 2+ messages in thread
From: William Morgan @ 2003-01-21 15:22 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-21 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-21 11:54 cygwin auto-import scm_sys_protects Bill Schottstaedt
2003-01-21 15:22 ` William Morgan

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).