Open svanschalkwyk opened 9 months ago
I just stumbled across the same issue. Apparently use_module is a directive and thus has to be put into a file.
What worked for me:
# FILE: imports.pl
:- use_module(library(clpfd)).
I don't know if you can import that
Then run swi-prolog.swipl imports.pl
. Afterwards running 4 #= 2*Y.
yields the expected Y=2.
SWI-Prolog (threaded, 64 bits, version 9.0.4)