[Openmcl-devel] Simple FFI Newb questions...

R. Matthew Emerson rme at clozure.com
Fri Aug 7 11:27:30 PDT 2009

On Aug 7, 2009, at 2:10 PM, Michael Kohout wrote:

> I've built and run ffigen, written my populate.sh script, called it  
> from within ccl with (ccl:create-interfaces :python25), and  
> referenced those interfaces with  (use-interface-dir :python25).
> After which I try to call a function defined by python's c api:  (#_  
> #>Py_Initialize)
> However, when I try to call a function defined in python's c lib, I  
> get an error:
> Foreign function not found: :<P>Y_<I>NITIALIZE

You'd say (#_PyInitialize).

Also, be sure to do (open-shared-library "/path/to/python-shared-lib").

> Any suggestions?  Am I missing any steps?

More information about the Openmcl-devel mailing list