[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Pbs in interfacing Lisp and ThinkPascal
- To: info-mcl
- Subject: Pbs in interfacing Lisp and ThinkPascal
- From: email@example.com (Damien Genthial)
- Date: 10 Oct 91 14:34:38 GMT
- Newsgroups: comp.lang.lisp.mcl
- Organization: IMAG Institute, University of Grenoble, France
- Sender: firstname.lastname@example.org
I'm trying to interface Think-Pascal 3.0.2 with MACL 1.3.2. The only
thing I want to do is to call a Pascal procedure from Lisp and to read
back the result. As Think Pascal documentation mentions that libraries
are MPW compatible, I have tried the simple following code (wich is
based on FF examples). LispVins.lib is a library obtained from a simple
unit using strings, files and integers.
;;; The following lisp code, when evaluated,
(def-logical-pathname "ff;" "TRILAN-II:Damien:Divers:ThinkPascal<->Lisp:")
(def-logical-pathname "paslib;" "TRILAN-II:Logiciels:Think Pascal-3.0:")
:libraries '("paslib;Runtime.lib" "paslib;Interface.lib"))
;;; produces this message :
> Error: Reference to undefined entry point "THEPORT"
> While executing: CCL::FF-MARK-ENTRY
> Type Command-/ to continue, Command-. to abort.
Then I have looked at the ThinkC<->Lisp interface provided by Guillaume
Cartier. The problem for me is the Pascal programs I want to call are
making a great use of the runtime library of Pascal, so I can not use
Anyone has ideas ? In my opinion, it must be possible : it's Pascal (Macintosh
system is coded in Pascal), and it's MPW compatible.
Thanks in advance for any help provided.