Re: [cffi-devel] Access to code

2013-11-23 Thread Luís Oliveira
On Sat, Nov 23, 2013 at 12:56 AM, Greg Bennett wrote: > At least I have a way forward: make up a simple c function - dear old > Hello World will do. Compile a shared library containing it. Load that > as you suggest. Use defcfun to give it a lisp name. Try calling that > name. > > As an aside: > I

Re: [cffi-devel] Access to code

2013-11-22 Thread Luís Oliveira
On Fri, Nov 22, 2013 at 1:36 AM, Greg Bennett wrote: > Suppose I have a set of c functions, and their .o files too, which I would > like to > wrap using defcfun and relatives. You need to compile a shared library with those functions then load it via LOAD-FOREIGN-LIBRARY. > What precautions mus

[cffi-devel] Access to code

2013-11-21 Thread Greg Bennett
Running under linux mint 14 64 bit; using ccl as the lisp. I have been looking at the examples provided with the cffi material, as well as at the manual, to see how the wrapping of c functions seems to work. These are very helpful but depend on system calls and "eveything" knows where they are