[Ecls-list] DFFI on x86_64

Marco Gidde marco.gidde at tiscali.de
Mon Feb 5 18:21:41 UTC 2007


Hello Juanjo,

recently I tried to build a lisp wrapper around a C-library with CFFI
and got some strange crashes with ECL. The appended patch is probably
not quite correct but works here and should give you an idea of what
is still missing.

Another issue occurred when I tried callbacks with an ECL built with
the --with-cxx option (also via CFFI). While C allows to cast a void*
to any kind of function pointer, C++ doesn't. Maybe a reinterpret_cast
in the generated C-code might help, but I'm not sure and haven't
testet this. For now I can live with the old-fashioned C-ECL :-)


Regards,

Marco



-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecl.diff
Type: text/x-patch
Size: 1190 bytes
Desc: ecl.diff
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20070205/d1f77da0/attachment.bin>


More information about the ecl-devel mailing list