Hi Marijn,
See
https://groups.google.com/forum/#!topic/swi-prolog/hTHWeu9JsRQ
With the next release there will be additional documentation and a
ChangeLog announcement ...
Cheers --- Jan
> Infile included fromtest.cc:8:0:
> /usr/local/lib/swipl-7.3.11/include/SWI-Prolog.h:1158:2:warning:#warning"Term
> arity has changed from int to size_t."[-Wcpp]
> #warning"Term arity has changed from int to size_t."
> ^
> /usr/local/lib/swipl-7.3.11/include/SWI-Prolog.h:1159:2:warning:#warning"Please
> update your code and use #define PL_ARITY_AS_SIZE 1."[-Wcpp]
> #warning"Please update your code and use #define PL_ARITY_AS_SIZE 1."
> ^
> |
>
> When I provide the directive #define PL_ARITY_AS_SIZE 1 there are errors:
> |
> /usr/local/lib/swipl-7.3.11/include/SWI-cpp.h:Inmember
> function‘intPlTerm::arity()’:
> /usr/local/lib/swipl-7.3.11/include/SWI-Prolog.h:1150:60:error:cannot
> convert ‘int*’to ‘size_t*{aka longunsignedint*}’forargument ‘3’to
> ‘intPL_get_name_arity_sz(term_t,atom_t*,size_t*)’
> #definePL_get_name_arity(t,n,a)PL_get_name_arity_sz(t,n,a)
> ^
> /usr/local/lib/swipl-7.3.11/include/SWI-cpp.h:747:8:note:inexpansion of
> macro ‘PL_get_name_arity’
> if(PL_get_name_arity(ref,&name,&arity))
> ^
> |
> etc.
>
> Should I use the version with the warnings, or is there some kind of fix?
>
> Thanks in advance, Marijn
>
> --
> You received this message because you are subscribed to the Google
> Groups "SWI-Prolog" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
swi-prolog+...@googlegroups.com
> <mailto:
swi-prolog+...@googlegroups.com>.
> Visit this group at
http://groups.google.com/group/swi-prolog.
> For more options, visit
https://groups.google.com/d/optout.