Hi, I get "error C2065: 'ecl_callback_0' : undeclared identifier" error when compiling a ffi:defcallback.<br> <br>For instance, I'm unable to compile the following defun (using the MSVC version of ECL):<br>
<br>(defun prepare-callback ()<br> (ffi:defcallback mycallback :int () (+ 3 4)))<br> <br>The only workarround I found is to put a forward declaration before my defun, that is:<br> <br>(ffi:clines "static int ecl_callback_0();")<br>
(defun prepare-callback ()<br> (ffi:defcallback mycallback :int () (+ 3 4)))<br><br>This way, I can use the callback from C, but this is not a valid solution for me, since this forward declaration depends on the signature of the defined callback.<br>
<br>Any feedback will be wellcome,<br>Ramon