Prolog existence_error following Seven Languages in Seven Weeks
The interactive gprolog interpreter runs queries against a loaded list of predicates, that is why you get the existence_error exception. You will have to load your predicates into it, either by using an IDE that does the loading for you or doing it manually. Here’s one approach: | ?- [user]. compiling user for byte code… … Read more