From jdk8@duke.edu Thu Feb 14 09:02:49 2002
Received: from gibson.acpub.duke.edu (gibson.acpub.duke.edu [152.3.233.8])
	by swi.psy.uva.nl (8.11.6/8.11.2) with ESMTP id g1E82mp16860
	for <prolog@swi.psy.uva.nl>; Thu, 14 Feb 2002 09:02:48 +0100 (MET)
Received: from teer3.acpub.duke.edu (teer3.acpub.duke.edu [152.3.233.182]) 
        by gibson.acpub.duke.edu (8.11.5/8.11.3/Duke-5.0.0) with ESMTP id g1E81tD05449 for <prolog@swi.psy.uva.nl>;
        Thu, 14 Feb 2002 03:01:55 -0500 (EST)
Received: (from jdk8@localhost)
	by teer3.acpub.duke.edu (8.9.3/8.9.3) id DAA11711;
	Thu, 14 Feb 2002 03:01:55 -0500 (EST)
Date: Thu, 14 Feb 2002 03:01:55 -0500 (EST)
From: Justin David Kalweit <jdk8@duke.edu>
Sender: jdk8@duke.edu
To: prolog@swi.psy.uva.nl
Message-ID: <Pine.GSO.4.44.0202140301220.11245-100000@teer3.acpub.duke.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Virus-Scanned: by amavisd-milter, Duke University (http://amavis.org/)
Subject: [SWIPL] Calling prolog from C

  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?

-Justin Kalweit





