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")); -- JoachimReceived 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