Article View: comp.lang.prolog
Article #1159Using embeded-C with Arity Prolog interperter
From: O Morgan
Date: Mon, 03 Sep 1990 18:24
Date: Mon, 03 Sep 1990 18:24
21 lines
1247 bytes
1247 bytes
Hi,
has anyone got any experience compiling Arity Prolog with embeded-C.
I want to compile some C declarations and code into the interpreter:
(version 5.1)
I'm compiling the C code with "CL -c C-CODE.C", and the C declations for
Prolog using the APC compiler. At link-time, I get a message complaining
about an unresolved external, MAIN.
I tried to solve that by inserting the function " main() {}; " in the C
file. It now links but hangs when you run the interpreter. (Displaying
an ERROR 1001 FILE NOT FOUND messsage).
Any suggestions? (E.Mail if poss.)
Olly Morgan
--
----------------------------------------------------------------------------
Olly Morgan **** Tel: (+44 31) 662 4395 **** E.Mail: O.Morgan@ed.ac.uk
Edinburgh School of Agric. 42 South Oswald Rd, Edinburgh EH3 9NA, Scotland
----------------------------------------------------------------------------
Technical Details
Message-ID:
<6088@castle.ed.ac.uk>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!uunet!mcsun!ukc!edcastle!ownShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!uunet!mcsun!ukc!edcastle!own From: own@castle.ed.ac.uk (O Morgan) Newsgroups: comp.lang.prolog Subject: Using embeded-C with Arity Prolog interperter Message-ID: <6088@castle.ed.ac.uk> Date: 3 Sep 90 18:24:00 GMT Organization: Edinburgh School of Agriculture Lines: 21