[plt-scheme] Old FFI question
At Wed, 09 Feb 2005 12:39:40 +0100, Peter Bex wrote:
> ========================== curses.scm ==========================
> (c-declare "#include <curses.h>")
>
> (define initscr (c-lambda () (pointer "WINDOW") "initscr"))
> ================================================================
>
> $ mzc ++ldf -lcurses curses.scm
> MzScheme compiler (mzc) version 207, Copyright (c) 2004 PLT Scheme, Inc.
> "curses.scm":
> [output to "./curses.so"]
What platform are you using? (Your example works on my machine.)
Thanks,
Matthew