[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] compiled program with macros raises unbound-variable err
[Chicken-users] compiled program with macros raises unbound-variable error
Thu, 08 Mar 2007 10:42:50 +0100
Thunderbird 184.108.40.206 (X11/20070103)
i've tried to compile a file that uses some macros defined with
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
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.
- [Chicken-users] compiled program with macros raises unbound-variable error,