[plt-scheme] Using SRFI-4 from C
--- 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
undefined:
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?
Thanks,
Noel
Email: noelwelsh <at> yahoo <dot> com
AIM: noelhwelsh
__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/