didoudiaz / gprolog

GNU Prolog
Other
106 stars 13 forks source link

Power not defined #58

Closed UWN closed 1 year ago

UWN commented 1 year ago
ulrich@p0:~/ftp/gnu-prolog$ cat > pow.pl
pow(X,P,R) :- R is X^P.
ulrich@p0:~/ftp/gnu-prolog$ /opt/gupu/gprolog-1.6.0/bin/gplc pow.pl
/tmp/gplckP0oxh.o: In function `predicate(pow/3)':
(.text+0x49): undefined reference to `Pl_Fct_Integer_Pow'
collect2: error: ld returned 1 exit status
compilation failed
pmoura commented 1 year ago

With 1ce0e592fe0a79e17e394599e093babf23b676df:

$ logtalk_tester -p gnu -s ~/Documents/Logtalk/
% Batch testing started @ 2023-07-11 15:24:02
%         Logtalk version: 3.68.0-b01
%         GNU Prolog version: 1.6.0
%
% logtalk3/tests/prolog/functions/integer_power_2
%         21 tests: 0 skipped, 21 passed, 0 failed (0 flaky)
%         completed tests from object tests in 2 seconds
%         clause coverage n/a
%
% 1 test sets: 1 completed, 0 skipped, 0 broken, 0 timedout, 0 crashed
% 21 tests: 0 skipped, 21 passed, 0 failed (0 flaky)
%
% Batch testing ended @ 2023-07-11 15:24:06