[Ecls-list] Fwd: How used c string args and c string result?

birulevo.net linkfly at birulevo.net
Mon Apr 30 18:04:23 UTC 2007


Hello, ecls-list.
       I'am need used foreign c-string. Please talk me!..

My part c file compiling in *.obj separate ECL:
       
       ...
       char* save_file(char* dir)
       {
       ...

In lisp-file:

(ffi::Clines
    "#include \"save_upload_file.h\""
    )

(defun save_file() (ffi::c-inline (s) (:char*) :char*
    "save_file(#0)" :one-liner t))

Error when compiling:

;;; Error: Unable to coerce lisp object from type (STRING,:CHAR*)
to C/C++ type (T,:OBJECT)    

When error? using MAKE-ARRAY? Conversion result? How?
       

-- 
P.S. Excuse for bad English.

With respect,
 birulevo.net                          mailto:linkfly at birulevo.net







More information about the ecl-devel mailing list