The static linking schema can be used on all versions of SWI-Prolog. The feature/2 predicate may be used to find out what other linking methods are provided for this version.
Note that, as this feature conflicts with save/[1,2] and save_program/[1,2], it is not enabled by default. To enable it, the system should be configured using:
% sh configure --enable-dlopenfeature(dll, true) If this succeeds the system provides an interface for loading .DLL
files by means of open_dll/2 and friends. See section .
If either the feature open_shared_object or dll is true, the library library(shlib.pl) provides a common interface for loading foreign files from Prolog.
Note that a specific version of SWI-Prolog may offer multiple of these loading facilities.