I wrote the following example, in an attempt to experiment with R7RS libraries in Chibi Scheme 0.5.3:
(define-library (example hello)
(export hello-world)
(import (scheme base))
(begin
(define (hello-world) "hello, world")))
(import (scheme write)
(example hello))
(write (hello-world))
Unfortunately when executed, it generates an error about an undefined variable:
$ chibi-scheme hello.scm
ERROR: undefined variable: hello-world
I must be making a simple mistake but don't see it. Any ideas?