Tcl/Tk Notes

Tcl/Tk itself is not included in the SICStus distribution. It must be installed in order to use the interface. It can be downloaded from the Tcl/Tk primary website:

     http://tcl.sourceforge.net
     

As of SICStus 3.10.1, SICStus for MacOS X use Aqua Tcl/Tk. The Aqua version of Tcl/Tk uses the native Aqua user interface. Earlier versions of SICStus for MacOS X used a Tcl/Tk based on X Windows. Aqua Tcl/Tk (currently version 8.4.2) can be downloaded, for free, from:

     http://www.apple.com/downloads/macosx/unix_open_source/
     

On HP-UX 1.6i (B.11.22) on Itanium (IPF64), SICStus uses Tcl/Tk 8.4.4.

The Tcl/Tk interface module included in SICStus Prolog 3.11.0 (library(tcltk)) is verified to work with Tcl/Tk 8.3. The current version of the interface is expected to work with version 8.1 and newer.

Under UNIX, the installation program automatically detects the Tcl/Tk version (if the user does not specify it explicitly). Except as noted above, the distributed files are compiled for Tcl/Tk 8.3.

Under Windows, the binary distribution is compiled against Tcl/Tk 8.3. If you need to use another version of Tcl/Tk, you have to recompile library(tcltk); see Configuring the Tcl/Tk library module under Windows.

Please note: You need to have the Tcl/Tk binaries accessible from your PATH environment variable, e.g. C:\Program Files\Tcl\bin".

The GUI version of SICStus spwin, like all Windows non-console applications, lacks the C standard streams (stdin,stdout,stderr) and the Tcl command puts and others that use these streams will therefore give errors. The solution is to use sicstus instead of spwin if the standard streams are required.