On 10/12/07, William Ramsay <address@hidden> wrote:
Hi,
Now I'm confused. I'm writing a program that uses Gtk and Imlib2.
Imlib2 requires syntax-case, but when I add syntax-case I get errors
with my define statements. For instance, my program starts with:
(define win-group (gtk_window_group_new))
(define window (gtk_window_new GTK_WINDOW_TOPLEVEL))
(gtk_window_group_add_window win-group window)
This works fine until I add (requires-extension syntax-case) and then I
get a compile error:
Error: invalid context for definition: (define win-group
(gtk_window_group_new))
What am I doing wrong and how do I fix it?
Are the defines embedded into an outer binding form, or do they
exist at toplevel? syntax-case is stricter about the placement
of define forms in binding forms.
cheers,
felix