 <p>This, undocumented and unsupported, feature apparently never did work on Windows.</p> <p>Instead you can use one of the pre-built runtime systems that loads a main.sav from the folder containing the executable. E.g. save your test.sav as main.sav instead and place it alongside sprti.exe in a folder that contains a proper folder structure for SICStus, as described in the manual, in the section Runtime Systems on Windows Target Machines.</p> <p>The most common solution is to use the spld.exe tool an build a self contained executable but that requires the corresponding C compiler from Microsoft.</p> <p>(I am one of the SICStus Prolog developers)</p>