[gambit-list] compilation fun with bsc

lowly coder lowlycoder at huoyanjinjing.com
Sun May 17 20:16:12 EDT 2009


I realize that for blackhole, c-define-type's are not exported across
modules. How do I pull them in? The following code does not compile under
bsc (but does under gsc)

~/magic$ cat test3.scm
(c-define-type yay int)
~/magic$ bsc test3.scm
*** ERROR IN "/home/x/magic/test3.scm"@1.20 -- Undefined C type identifier
~/magic$ gsc test3.scm
test3.c:35: warning: deprecated conversion from string constant to ‘char*’
test3.c:89: warning: deprecated conversion from string constant to ‘char*’


I grepped bh/modules for examples of how to use c-define-type, but the only
one there used (void).

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://webmail.iro.umontreal.ca/pipermail/gambit-list/attachments/20090517/e2b64d0b/attachment.html 


More information about the Gambit-list mailing list