[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] compiled program with macros raises unbound-variable err
From: |
foobar |
Subject: |
[Chicken-users] compiled program with macros raises unbound-variable error |
Date: |
Thu, 08 Mar 2007 10:42:50 +0100 |
User-agent: |
Thunderbird 1.5.0.9 (X11/20070103) |
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).
This 'cps'-file is then required
by the mainfile via (require 'cps).
The file in question doesn't use the macros
but procedures from cps.scm/so which
inturn use the macros.
When i try to run the main-file i get:
Error: unbound variable: make-problem
Where 'make-problem' is a macro defined in cps-syntax.
I assumed that all macros were expanded during compilation
and only the expanded version is inserted into the code prior
to the final compilation to c and then to systembinary.
But appearently that's not the case.
What am i missing here?
Any hints are very much appreciated.
Best regards
certainty
- [Chicken-users] compiled program with macros raises unbound-variable error,
foobar <=