Hi again.
This time I am getting the following error when I try the X example of the documentation:
$ make examples rm -f bounce.o* ../../gsc/gsc -:="../.." -dynamic -cc-options " -I/usr/X11R6/ include" -ld-options " -lSM -lICE -L/usr/X11R6/lib -lX11" bounce.scm rm -f Xlib.o* ../../gsc/gsc -:="../.." -dynamic -cc-options " -I/usr/X11R6/ include" -ld-options " -lSM -lICE -L/usr/X11R6/lib -lX11" Xlib.scm ../../gsi/gsi Xlib -e '(load "bounce") (main)' *** ERROR IN (string)@1.18 -- Unbound variable: sc#main make: *** [run] Error 70
Again I need your help.
Thanks in advance.
Regards, Sakai, Kazuhiro
Afficher les réponses par date
On 17-Jun-06, at 12:34 PM, Sakai, Kazuhiro wrote:
Hi again.
This time I am getting the following error when I try the X example of the documentation:
$ make examples rm -f bounce.o* ../../gsc/gsc -:="../.." -dynamic -cc-options " -I/usr/X11R6/ include" -ld-options " -lSM -lICE -L/usr/X11R6/lib -lX11" bounce.scm rm -f Xlib.o* ../../gsc/gsc -:="../.." -dynamic -cc-options " -I/usr/X11R6/ include" -ld-options " -lSM -lICE -L/usr/X11R6/lib -lX11" Xlib.scm ../../gsi/gsi Xlib -e '(load "bounce") (main)' *** ERROR IN (string)@1.18 -- Unbound variable: sc#main
This last line is suspicious. It seems that you are in the "sc#" namespace. This is probably because you did an (include "~~/syntax- case.scm") somewhere, probably in the file gambcini.scm or gambcext.scm . Just avoid doing that, or alternatively, type
../../gsi/gsi Xlib -e '(load "bounce") (namespace ("" main)) (main)'
Marc
You're right, I've got gambcext.scm, renamed from syntax-case.scm, placed in the top of the Gambit-C tree.
I've got the another error message:
$ ../../gsi/gsi Xlib -e '(load "bounce") (namespace ("" main)) (main)' *** ERROR IN (string)@1.17 -- Namespace prefix must be a string
However, if I removed (renamed) gambcext.scm, it works.
Now I'm little confused about the use of the syntax-case.scm. Is there any detail documentation about the use of syntax-case.scm?
By the way, this demo is very nice!
Regards, Kazuhiro
On 2006/06/18, at 10:58, Marc Feeley wrote:
On 17-Jun-06, at 12:34 PM, Sakai, Kazuhiro wrote:
Hi again.
This time I am getting the following error when I try the X example of the documentation:
$ make examples rm -f bounce.o* ../../gsc/gsc -:="../.." -dynamic -cc-options " -I/usr/X11R6/ include" -ld-options " -lSM -lICE -L/usr/X11R6/lib -lX11" bounce.scm rm -f Xlib.o* ../../gsc/gsc -:="../.." -dynamic -cc-options " -I/usr/X11R6/ include" -ld-options " -lSM -lICE -L/usr/X11R6/lib -lX11" Xlib.scm ../../gsi/gsi Xlib -e '(load "bounce") (main)' *** ERROR IN (string)@1.18 -- Unbound variable: sc#main
This last line is suspicious. It seems that you are in the "sc#" namespace. This is probably because you did an (include "~~/syntax- case.scm") somewhere, probably in the file gambcini.scm or gambcext.scm . Just avoid doing that, or alternatively, type
../../gsi/gsi Xlib -e '(load "bounce") (namespace ("" main)) (main)'
Marc
On 19-Jun-06, at 11:47 AM, Sakai, Kazuhiro wrote:
You're right, I've got gambcext.scm, renamed from syntax-case.scm, placed in the top of the Gambit-C tree.
I've got the another error message:
$ ../../gsi/gsi Xlib -e '(load "bounce") (namespace ("" main)) (main)' *** ERROR IN (string)@1.17 -- Namespace prefix must be a string
That was a bad suggestion of mine. If syntax-case is active you no longer have access to the Gambit specific special forms (such as define-macro, declare, and namespace). The syntax-case expander treats (namespace ("" main)) as a function call, expands it to (namespace ('"" main)), note the extra quote, and then when the Gambit interpreter (or compiler) tries to process this there is a syntax error because of the extra quote.
However, if I removed (renamed) gambcext.scm, it works.
Now I'm little confused about the use of the syntax-case.scm. Is there any detail documentation about the use of syntax-case.scm?
Not really, but this paper explains the use of syntax-case: http:// www.cs.indiana.edu/~dyb/pubs/tr356.pdf .
By the way, this demo is very nice!
I like it too. If you can improve it or create some other demos please send them to me so I can add them to the Gambit distribution.
Marc