The Sicstus manual says to use this to load a library: use_module (library (package)). This works in Prolog on the command line, but I cannot find out how to load the library from the Prolog source file. When I turn on "use_module (library (Package))". in my .pl file, I get a permission error: cannot override built_in use_module / 1.
Try using the directive, for example:
:- use_module(library(Package)).
... at the top of your file, where Packageis the atom that identifies the library module you want to load.
Package