Welcome to the CHICKEN Scheme pasting service

compile-syntax problem added by megane on Sat May 26 14:26:42 2012

;; foo.scm
(define (foo) (print "foo"))
(define-syntax foo-macro
  (ir-macro-transformer
   (lambda (e i c)
     (print "foo macro"))))

;; bar.scm
(foo)
(foo-macro)

;; Output
$ csc -compile-syntax -unit foo foo.scm -c
$ csc -uses foo bar.scm foo.o
$ ./bar
foo

Error: unbound variable: foo-macro

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which module provides `get-environment-variable'?
Visually impaired? Let me spell it for you (wav file) download WAV