chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] compiled program with macros raises unbound-variable


From: felix winkelmann
Subject: Re: [Chicken-users] compiled program with macros raises unbound-variable error
Date: Thu, 8 Mar 2007 11:28:51 +0100

On 3/8/07, foobar <address@hidden> wrote:
Hi list,

i've tried to compile a file that uses some macros defined with
syntax-rules.
I compiled it using: csc -R tinyclos foo.scm
So nothing special sofar.
The file compiles without warnings or errors.

Another file compiled to a shared-library
using csc -s cps.scm.
This file requires the macros via
(require 'cps-syntax).

Is cps-syntax a  source file containing macros? Then you have to
make those macros available at _compile-time_, or the
compiler will not see them. "(require ...)" loads code at run-time,
not at compile-time. Try "require-for-syntax".


cheers,
felix




reply via email to

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