From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: William Morgan Newsgroups: gmane.lisp.guile.user Subject: Re: cygwin auto-import scm_sys_protects Date: Tue, 21 Jan 2003 10:22:27 -0500 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <20030121152227.GA2116@masanjin.net> References: <200301211154.DAA18727@cmn14.stanford.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043166545 11082 80.91.224.249 (21 Jan 2003 16:29:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 21 Jan 2003 16:29:05 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18b1G5-0002o5-00 for ; Tue, 21 Jan 2003 17:28:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18b12a-0005k1-03 for guile-user@m.gmane.org; Tue, 21 Jan 2003 11:14:20 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18b102-0004wl-00 for guile-user@gnu.org; Tue, 21 Jan 2003 11:11:42 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18b0xC-0004CV-00 for guile-user@gnu.org; Tue, 21 Jan 2003 11:08:48 -0500 Original-Received: from h0060976e2b56.ne.client2.attbi.com ([65.96.180.211] helo=lux) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18b0BU-0007m4-00 for guile-user@gnu.org; Tue, 21 Jan 2003 10:19:28 -0500 Original-Received: from wmorgan by lux with local (Exim 3.35 #1 (Debian)) id 18b0EN-0000a0-00 for ; Tue, 21 Jan 2003 10:22:27 -0500 Original-To: guile-user@gnu.org Mail-Followup-To: guile-user@gnu.org Content-Disposition: inline In-Reply-To: <200301211154.DAA18727@cmn14.stanford.edu> User-Agent: Mutt/1.4i X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General Guile related discussions List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:1570 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1570 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 _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user