[plt-scheme] Old FFI question

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Feb 9 09:09:07 EST 2005

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



Posted on the users mailing list.