From jan@swi.psy.uva.nl Sat Feb 16 11:32:11 2002
Received: from gollem.swi.psy.uva.nl (root@gollem.swi.psy.uva.nl [145.18.152.30])
	by swi.psy.uva.nl (8.11.6/8.11.2) with ESMTP id g1GAWBu00013;
	Sat, 16 Feb 2002 11:32:11 +0100 (MET)
Received: (from jan@localhost)
	by gollem.swi.psy.uva.nl (8.11.6/8.11.6/SuSE Linux 0.5) id g1GAVI205701;
	Sat, 16 Feb 2002 11:31:18 +0100
Date: Sat, 16 Feb 2002 11:31:18 +0100
Message-Id: <200202161031.g1GAVI205701@gollem.swi.psy.uva.nl>
From: Jan Wielemaker <jan@swi.psy.uva.nl>
Subject: Re: [SWIPL] Calling prolog from C
To: Justin David Kalweit <jdk8@duke.edu>, prolog@swi.psy.uva.nl
In-Reply-To: Justin David Kalweit's message of Thu, 14 Feb 2002 03:01:55 -0500 (EST)
Phone: +31 - 20 - 525 6121

>   I am using pl-5.0.1 on a linux machine.
> Is it possible to call the prolog engine from C code initially?  Or do I
> have to call my C prog from prolog first.  Also, if the above is
> possible, I am assuming that including SWI-Prolog.h is not enough and
> that I need to link some kind of prolog library when compiling my c
> program.  I can't seem to find this library.  Any path hints or even
> just the name of the lib?

Have a look at `embedding', the plld linker front-end and
PL_initialise().  It's very simple on a well-supported platform.

	Cheers --- Jan

