Re: [eclipse-clp-users] [eclipse-users] Calling Eclipse from C++ (solved!) but new problem now..

From: Joachim Schimpf (Independent Contractor) <jschimpf_at_cisco.com>
Date: Mon, 07 Apr 2008 20:29:29 +0100
Christos Orovas wrote:
> 
> Hallo !
> 
> further to my previous mail (attached below) I found the solution
> in  http://www.unixwiz.net/techtips/gnu-c-attributes.html#compat
> by simply placing the following code before everything else:
> 
> -----------------
> /* If we're not using GNU C, elide __attribute__ */
> 
> #ifndef __GNUC__
> #  define  __attribute__(x)  /*NOTHING*/
> #endif
> 
> --------------------------------
> 
> The program now managed to be compiled and run with ec_init() only, but
> as soon as I put 
> 
> ec_post_goal(term(EC_functor("writeln",1),"hello world"));

Make sure you use the functions/methods from Appendix B of the
Embedding manual, which are the ones for C++.  In this case

post_goal(term(EC_functor("writeln",1),"hello world"));


-- Joachim
Received on Mon Apr 07 2008 - 12:29:39 CEST

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET