Re: [eclipse-users] embebing prolog in C++

From: Kish Shen <kish.shen_at_...2...>
Date: Fri, 27 Oct 2006 13:32:38 +0100
Hi,

Your previous messages are being held because the included files are rather large -- 130K or
so.

In general, if you want to compile a Prolog/ECLiPSe program like the two programs you 
included, you should compile them from ECLiPSe.

If you must issue the compile from C++, you can use post_goal to do this, e.g.

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

Cheers,

Kish

On Friday 27 October 2006 13:07, J. Manuel Velasco wrote:
> Hello all,
> 
> I have a long file with a lot of Prolog facts and other that is the result of 
> converting constraints with the chr2pl command.
> 
> I need to make some inferences from results that I get as output in a C++ 
> function, so I am trying to embebeb Prolog in C++.
> 
> I am experiecing problems since I am really newbie.
> 
> I tried with ec_post_string giving to porlog line by line, but I get an 
> "found-end-of-line" not recogniced command error.
> 
> I look for other way and I found things like:
> 
> post_goal(term(EC_functor("writeln",1),"hello world"));        
> 
> But I don't achieve good understanding how can I pass the prolog facts.
> 
> I would love to attach the two files I need to embebed but the message is 
> held.
> 
> Any help/guide will be appreciate.
> 
> Best Regards,
> ·_· manou
> 
> _______________________________________________
> ECLiPSe-Users mailing list
> ECLiPSe-Users_at_...2...
> http://www.crosscoreop.com/mailman/listinfo/eclipse-users
> 
Received on Fri Oct 27 2006 - 13:27:31 CEST

This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST