Consult not working as expected

What does that mean?


Quick guess without knowing more is that SWI-Prolog is not set to the correct directory.

Use the predicate pwd/0 to see the current directory.

?- pwd.
% c:/users/groot/documents/prolog/
true.

See this for an example that changes the directory using working_directory/2 before loading the code and calling a predicate.