Hi!
I've just started using SWI-Prolog and XPCE, and I'm going through the tutorial "XPCE/Prolog Course Notes", but when I tried to enter the example in section 3.3.3, I received this error message:
?- pce_begin_class(matrix(width, height), vector, "Two-dimensional array").
ERROR: toplevel: Undefined procedure: pce_begin_class/3 (DWIM could not correct goal)
I searched the Wiki page for this error and found this note:
Load XPCE explicitely by starting a file or module that uses it with the load-command:
:- use_module(library(pce)).
However, I had already done that, but I still get the error. What am I doing wrong?
Thanks.