Re: ffi:defcallback with cxx

2015-11-13 Thread hiro hiro
Hello, Thank you for your reply. Now I am trying direct access wxWidgets GUI library with c-inline. If CFFI is possible to access C++ library, I will use CFFI. Best regards, hirohiro 2015-11-13 19:12 GMT+09:00 Daniel Kochmański : > Hey, > > thanks for the report! > > Inlining is somewhat

Re: ffi:defcallback with cxx

2015-11-13 Thread Matthew Mondor
On Fri, 13 Nov 2015 12:30:34 +0100 Attila Lendvai wrote: > > I'll remove the `new-cmp' directory before the next > > release to avoid unnecessary confusing of people approaching the > > codebase. > > random suggestion: leave it behind in a separate branch with an > appropriate name. Unfortunate

Re: ffi:defcallback with cxx

2015-11-13 Thread Attila Lendvai
> I'll remove the `new-cmp' directory before the next > release to avoid unnecessary confusing of people approaching the > codebase. random suggestion: leave it behind in a separate branch with an appropriate name. -- • attila lendvai • PGP: 963F 5D5F 45C7 DFCD 0A39 -- “No matter how paranoid or

Re: ffi:defcallback with cxx

2015-11-13 Thread Daniel Kochmański
Hey, thanks for the report! Inlining is somewhat broken. Direct casting of a function into (void*) is undefined behavior in C afaik but that's what we'll do. Please consult this issue: https://gitlab.com/embeddable-common-lisp/ecl/issues/167 hiro hiro writes: > Hello, > > I compiled ecl16.0

ffi:defcallback with cxx

2015-11-13 Thread hiro hiro
Hello, I compiled ecl16.0.0 with option "--with-cxx". Then I use ffi:defcallback function like (ffi:defcallback :void () . ) then compile-file (compile-file "x.lisp" :c-file "x.cpp" :system-p t) I received error message as follows (freebsd10.1 clang++) x