[eclipse-users] how to make queries to the prolog database from C++

From: J. Manuel Velasco <jvelasco_at_...4...>
Date: Mon, 30 Oct 2006 13:46:27 +0100
Hello all,

I am trying to call prolog from C++.

I make a compilation of the prolog code:

post_goal(term(EC_functor("compile", 1), "familia"));

familia is a simple prolog database:
progenitor(clara,jose).
progenitor(tomas,jose).
progenitor(tomas,isabel).
progenitor(jose,ana).
progenitor(jose,patricia).
progenitor(patricia,jaime).

I would like to know in first time how can I make a query to the database from 
C++.

I am reading the manual and trying things from examples but I don't achieve.

Any help or guide will be appreciate.

Thanks in advance.
Received on Mon Oct 30 2006 - 12:46:29 CET

This archive was generated by hypermail 2.3.0 : Tue Apr 16 2024 - 09:13:19 CEST