> On Jun 9, 2017, at 2:39 PM, Catonano <caton...@gmail.com> wrote: > > > > 2017-06-09 22:56 GMT+02:00 Matt Wette <matt.we...@gmail.com > <mailto:matt.we...@gmail.com>>: > > I think your outcome-ptr should be (bytevector->pointer (make-bytevector > (sizeof unsigned-int))) > > Thank you, Matt > > The reason why I wrote it that way is because the previous function > (freexl_open) takes a pointer (a handler) and then more or less arbitrarily > allocates stuff onto it > > The handler is meant to be passed as an argument to subsequent calls to the > other funtiions of the library > > So I tought that the same would have happened with this outcome thing > > Maybe I'm wrong > > I'll think about this tomorrow, too > > Thank you very much for your suggestion !
I think Mike caught your real error: you were passing (list ‘* ‘int ‘*) and it wants (list ‘* int ‘*). `int’ is a variable defined by guile. scheme@(guile-user)> (use-modules (system foreign)) scheme@(guile-user)> int $1 = 8