[comp.lang.prolog] Using embeded-C with Arity Prolog interperter

own@castle.ed.ac.uk (O Morgan) (09/04/90)

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
----------------------------------------------------------------------------