Newsgroups: comp.lang.prolog
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!news.mathworks.com!hookup!news.moneng.mei.com!uwm.edu!msunews!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!extro!jdamski
From: jdamski@extro.usyd.edu.au (Jose Carlos Barbosa Damski)
Subject: Re: C<>Prolog Interfacing.
Message-ID: <D6HHK4.7LC@ucc.su.OZ.AU>
Sender: news@ucc.su.OZ.AU
Nntp-Posting-Host: extro.ucc.su.oz.au
Reply-To: jdamski@extro.usyd.edu.au
Organization: Sun Microsystems, Inc.
References: <3l9997$1r0@bright.ecs.soton.ac.uk>
Date: Tue, 4 Apr 1995 00:04:52 GMT
Lines: 30

In article 1r0@bright.ecs.soton.ac.uk, pwg92@ecs.soton.ac.uk (Peter Gibbs) writes:
>I'm trying to get a prolog compiler that will allow me to use a 
>C program to interface it. We already have sicstus here which would
>appear to do the job, but unfortunately it is no longer very reliable
>(i'm told its been patched too much, so its all a bit of a mess).
>Although many systems have C-Prolog interfaces, most of them rely on
>the C containing most or all of the prolog program.
>What i require (for my final project incidentally), is a system where
>the C can be used to 'call' and pass information to and from a Prolog
>program. The prime example of this is the Runtime System capability
>of SICStus prolog.
>
>Anyone have any ideas?

I used SICStus Prolog but now I changed to SWI Prolog in order to
generate a better compiled code (at least in the versions I have). SWI
Prolog has an way to do what you want (AND ME TOO), but I couldn't make
it works so far. I just post an article in this newsgroup and in comp.lang.c
but got no replies on how to make the link C <--> SWI Prolog properly.
If you have a better luck, pls let me know.


Jose.

---
_______________________________________________________________________
jdamski@extro.ucc.su.oz.au
jose@arch.su.edu.au
______________________________________________________________________

