[gambit-list] gsi does not support c-lambda??

schemeway at sympatico.ca schemeway at sympatico.ca
Tue Jul 10 20:45:46 EDT 2007


David,

>I don't understand why, but it seems that my gsi doesn't want to support
>c-lamda expression any longer. For example:
>
>   > (define pow2 (c-lambda (int) int "power_of_2"))
>   *** ERROR IN (console)@1.14 -- Interpreter does not support ##c-lambda
>
>I know that before, I could use them without any problems... I also
>tried to recompile gambit 4 beta 22 without the option enable-cplusplus
>with no differences...
>
>What is happening? I'm not sure since when c-lambda's stopped working,
>but it might be after the insallation of snow?

That's unrelated (snow and c-lambda). But I'm surprised that you think it 
ever worked. c-lambda only works in code compiled to C. Of course, you can 
load compiled code from the interpreter. Put your code in a file and compile 
it with gsc. Then load it from gsi.

Hope this helps!

Dominique





More information about the Gambit-list mailing list