jude@discovery.nas.nasa.gov (Jude A. George) (08/11/90)
Forgive me if this has been asked before.
I would like to call some compiled LISP routines from my C code.
Say I have a lisp function:
(defun lisp_fun (bar baz)
(......))
I need to call it from a C program:
#include <strings.h>
extern char *foo();
main()
{
printf(foo("str1","str2"));
}
Is such a thing possible? I am using Franz LISP, but I can get KCL if
necessary. I have tried liszt to get a lisp_fun.o, and cc'd it together
with c_fun.o, but the cc linker does not recognize the external call.
Please email, and I will summarize.
:::::::::::::::::::::::::::::::/::::::::::::::::::::::::::::/:::::::::::::::
::::::::Jude:Anand:George:::::%\/:::::jude@nas.nasa.gov::::%\/::::::::::::::
::::::::endanger:judo:age:::::\/\::::::/\:/\::::::/\:::::::\/\::::::::::::::
:::::::::::::::::::::::::::::::\::::::/ / \/\::/ \:/\::::\:::::::::::::::