Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!bloom-beacon!athena.mit.edu!chekmate From: chekmate@athena.mit.edu (Adam Kao) Newsgroups: comp.sys.hp Subject: Lucid Common Lisp foreign function interface question Message-ID: <1989Nov29.230116.3905@athena.mit.edu> Date: 29 Nov 89 23:01:16 GMT Sender: root@athena.mit.edu (Wizard A. Root) Reply-To: chekmate@athena.mit.edu (Adam Kao) Organization: Massachusetts Institute of Technology Lines: 37 I'm trying to use the foreign function interface. When I try to load the file "interface.lisp": (load "/skipjack/adamk/lisp/interface.lisp") ;;; Loading source file "/skipjack/adamk/lisp/interface.lisp" >>Error: DEF-FOREIGN-FUNCTION has no global function definition SYMBOL-FUNCTION: Required arg 0 (S): DEF-FOREIGN-FUNCTION :A Abort to Lisp Top Level :C Try evaluating #'DEF-FOREIGN-FUNCTION again -> Now, according to the manual I have, I need to load the "external" module before calling foreign functions. So, assuming that was my problem, I tried loading the "external" module: > (require "external") >>Error: Module "external" has been REQUIRE'd, but isn't present, and isn't found as a file on the default directory. REQUIRE: Required arg 0 (MODULE-NAME): "external" Optional arg 1 (PATHNAME): NIL :A Abort to Lisp Top Level :C Just continue anyway. -> So, I assumed I needed the "external" module but it had somehow been destroyed. Is this true? If so, how can I get it? If not, what I'm doing wrong? Thank you very much, Adam Kao