[Ecls-list] generated shared library does not contain the defined function

Peter Keller psilord at cs.wisc.edu
Mon May 13 16:08:21 UTC 2013


On Mon, May 13, 2013 at 02:33:00PM +0400, Ala'a Mohammad wrote:
> ;; foo.lisp
> (defpackage "DEMO"
>   (:use :cl)
>   (:export "SUM-ARRAY"))
> 
> ;; using the following
> ;;;(declaim (si::c-export-fname sum-arary))
                                  ^^^^^^^^^
> ;; gave me
> ;;Unknown declaration specifier SI::C-EXPORT-FNAME
> ;; so instead I tried 'proclaim', but it seem to have
> ;; no effect as the generated symbol name is L1sum_array rather than
> demo_sum_array
> (proclaim '(si::c-export-fname sum-arary))
                                 ^^^^^^^^^
> 
> (defun sum-array (array)
>   (loop for i from 0 below (length array)
>         summing (aref array i)))

I'm not sure how to do the operation you want to do without cheking
further, but the indicated symbols are a typo. If you fix it, does the
problem go away?

-pete




More information about the ecl-devel mailing list