[plt-scheme] Using SRFI-4 from C

From: Noel Welsh (noelwelsh at yahoo.com)
Date: Sun Mar 6 13:21:22 EST 2005

--- Eli Barzilay <eli at barzilay.org> wrote:
> There is nothing to skip in C -- what happens is that you
> do use plain
> C vectors in C code, and these are used in Scheme via a
> cpointer
> object 

Ok, missing is, I think, the implicit use of the foreign.ss
library.  I'm now using foreign.ss and get-ffi-obj is

Welcome to MzScheme version 299.32, Copyright (c) 2004-2005
PLT Scheme, Inc.
> (require (lib "foreign.ss"))
> (define asmjump (ffi-lib "asmjump.so"))
> (get-ffi-obj "jump" asmjump (_fun _u32vector -> _int))
reference to undefined identifier: get-ffi-obj

Any suggestions?


Email: noelwelsh <at> yahoo <dot> com
AIM: noelhwelsh

Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 

Posted on the users mailing list.