Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!shelby!eos!amelia!discovery!jude From: jude@discovery.nas.nasa.gov (Jude A. George) Newsgroups: comp.lang.lisp Subject: compiled LISP + C? Summary: can I call LISP routines from C code? Message-ID: <7756@amelia.nas.nasa.gov> Date: 10 Aug 90 17:34:45 GMT Sender: news@amelia.nas.nasa.gov Distribution: na Organization: NASA Ames Research Center, Moffett Field, CA Lines: 29 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 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:::::\/\::::::/\:/\::::::/\:::::::\/\:::::::::::::: :::::::::::::::::::::::::::::::\::::::/ / \/\::/ \:/\::::\:::::::::::::::