I'm using clisp-2.34 on WinXP and I am trying to use the linkkit. I=20
have used the example from the CLISP FFI HOWTO=20
(http://www.niksula.cs.hut.fi/~tsiivola/clisp-ffi-howto.html) but when I=20
issue the command:
clisp-link add-module-set vector-module /c/clisp/base base+vector
I get the following error message:
In file included from vector-interface.c:1:
c:/clisp/linkkit/clisp.h:483: warning: register used for two global=20
vector-interface.c: In function `module__vector_interface__init_function_=
vector-interface.c:27: error: `dot_product' undeclared (first use in=20
vector-interface.c:27: error: (Each undeclared identifier is reported=20
vector-interface.c:27: error: for each function it appears in.)
make: *** [vector-interface.o] Error 1
Analyzing the C source code generated by CLISP for the line=20
specified by the compiler, I see that the pointer for the function=20
dot_product is really not declared in the code generated by CLISP. Why=20
this is not working ?! Am I doing something wrong ?!
Sam Steingold wrote:
>>* Andr=C3=A9 Vargas Abs da Cruz <naqeri@...> [2005-08-16 16:=
>this needs to be updated from 2.28 to 2.34.
>> Analyzing the C source code generated by CLISP for the line
>> specified by the compiler, I see that the pointer for the function
>> dot_product is really not declared in the code generated by
>> CLISP. Why this is not working ?! Am I doing something wrong ?!
>(setq FFI:*OUTPUT-C-FUNCTIONS* t)
>(c-lines "#include ...")
Thanks !!! It compiled just fine !!!