Hi,
I use slime 1.0 with emacs 21.3.1 and sbcl 0.8.19.29.
If I run the command slime-compile-file with the following code everything is OK:
(defpackage :test-c-call (:use :cl :sb-alien :sb-c-call)) (in-package :test-c-call)
(define-alien-routine my-func void)
However, if I change the above my-func-definition to return a pointer for example:
(define-alien-routine my-func (* t))
Then I get the this error:
error while parsing arguments to DESTRUCTURING-BIND: invalid number of elements in () to satisfy lambda list ((SWANK-BACKEND::START . SWANK-BACKEND::END)): exactly 1 expected, but 0 found [Condition of type SB-KERNEL::ARG-COUNT-ERROR]
This happens only when using the slime-compile-* functions. If I enter the alien-definition directly on the repl-prompt it gives me no error.
Maybe you know how to fix that. Thank you.
Maurice mauricex@gmx.net writes:
I use slime 1.0 with emacs 21.3.1 and sbcl 0.8.19.29.
Can you try upgrading to the CVS version of SLIME? For SBCL-SLIME compatibility you typically need to use versions of a similar vintage and it seems your SBCL is much newer than your SLIME.
FWIW it works fine for me with SLIME CVS and SBCL 0.8.19.15.
Luke Gorrie luke@synap.se wrote:
Maurice mauricex@gmx.net writes:
I use slime 1.0 with emacs 21.3.1 and sbcl 0.8.19.29.
Can you try upgrading to the CVS version of SLIME?
yes, the CVS version does it right. Thanks. Sorry for the noise.