[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error loading (system foreign) in r6rs mode

From: Marco Maggi
Subject: error loading (system foreign) in r6rs mode
Date: Wed, 16 Jan 2013 12:43:02 +0100

On a i686-pc-linux-gnu running Guile 2.0.7 doing:

   $ guile -x .sls -L . proof.sps

with the program:

   (import (rnrs) (proof))

and the library:

   (library (proof)
     (export libz)
     (import (rnrs)
       (system foreign))
     (define libz
       (dynamic-link "")))

I get the error:

;;; WARNING: compilation of /home/marco/var/tmp/proof.sps failed:
;;; ERROR: In procedure module-lookup: Unbound variable: dynamic-link

  But the program:

   (import (rnrs)
     (system foreign))
   (define libz
     (dynamic-link ""))
   (display libz)

succeeds with no problems.  Is (system foreign) special?
Marco Maggi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]