[plt-scheme] simple ffi problem

From: mike at nec-labs.com (mike at nec-labs.com)
Date: Fri Jul 22 17:32:39 EDT 2005

I grabbed the v299.108 binaries today, and still have the same problem...

> However, I can't get the syntax right for the external C function:
>
>    void fun2 (int in1, double *arr);
>
> I've tried:
>
>    (define fun2
>      (get-ffi-obj "fun2" "myclib"
>                   (_fun _int _cvector -> _void)))
>
> and
>
>    (define fun2
>      (get-ffi-obj "fun2" "myclib"
>                   (_fun _int (_cvector i _double) -> _void)))
>
> but keep getting errors like:
>
>    procedure application: expected procedure, given: #f;
>      arguments were: #<struct:fun-syntax> #<syntax:36:26>




Posted on the users mailing list.