[cffi-devel] Re: Clisp, cffi and defcfuns in a saved image

Luís Oliveira luismbo at gmail.com
Tue Feb 13 04:34:04 UTC 2007


On 13/02/07, Edgar Gonçalves <edgar.goncalves at gmail.com> wrote:
> ,-----
> | (asdf:operate 'asdf:load-op :cffi)
> |
> | (cffi:define-foreign-library odbc
> |   (:windows (:or "odbc32.dll"))
> |   (t (:default "odbc32.dll")))
> |
> | (cffi:defcfun ("SQLAllocHandle" sql-handle) :short)
> |
> | (sql-handle)
> `-----

OK, yes, you need to load the library before the defcfun. Some lisps
won't mind but others do. They'll all complain by the time the call to
sql-handle is evaluated though.

Why aren't you loading the library? What are you trying to accomplish?
What am I missing?

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/



More information about the cffi-devel mailing list