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

From: Joachim Schimpf (Independent Contractor) <"Joachim>
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.3.0 : Wed Sep 25 2024 - 15:13:20 CEST