William D Clinger wrote:
The workaround is to replace that expression by something
like
(define ignored1
(foreign-file /usr/X11R7/lib/libGL.so.1))
Hmmm... that didn't seem to work for me.
To make this concrete, here's the simplest possible test case that
demonstrates the
Eduardo Cavazos wrote:
If I load it via either one of these:
~ # larceny -- /scratch/_gl-test-case-a.scm
~ # larceny -err5rs -- /scratch/_gl-test-case-a.scm
I get this error:
ERROR detected during macro expansion:
Definition out of context
(define libGL (foreign-file libGL.so.1))
Success!
This test case library works. I put it in 'lib' and named it
'gl-test.sls'. Also note, I had to add a '(primitives ...)' form to the
import clause to get it to work.
I'm able to load it like so:
~ # larceny -err5rs
Larceny v0.97b1 (beta test) (Aug 25 2008 07:06:36,