views:

67

answers:

1

From the Plt-Scheme installation I have an example of C/Scheme interaction. There are two files: curses.c and curses-demo.ss. These files are available here. I've compiled curses.c, and trying to run curses-demo.ss

And I am getting the following error: "put: expects argument of type 'character, string, or byte string'; given "Hello World!""

It looks strange. Have any ideas what's happening?

+1  A: 

Those examples are quite old, and it seems that they suffer from a number of additional problems. If you need to interact with C code, it is much easier to do with the "new" foreign interface -- look at the foreign manual.

Eli Barzilay