Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
OCAML 2.02 Distribution for Windows
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: OCAML 2.02 Distribution for Windows
> It appears that a mixup has occurred...
> Your README file indicates that we need Tcl 8.04 in order to run the camltk
> interface. However, your distrubution includes the Tk 4.1 version of
> libraries.

The mix-up is in the naming of the library.  The so-called "CamlTk41"
library actually supports Tk 4.0, 4.1 and 8.0 under Unix, but only
Tk 8.0 under Windows.  One day I hope to get rid entirely of the "41"
suffix in the names of library files.

At any rate, under Windows, the CamlTk stuff was built against Tcl/Tk
8.0.4, and that's what you need to use CamlTk.

> Furthermore, when attempting to create the helloworld example the
> compiler complains that Module TK is undefined...

The following incantation works for me:

ocamlc -custom -I \ocaml\lib\camltk \
        tk41.cma \
        \ocaml\lib\camltk\libcamltk41.lib \
        \tcl\lib\tk80.lib \tcl\lib\tcl80.lib

(assuming OCaml installed in \ocaml and TclTk in \tcl).

Let me know if it doesn't work for you.

- Xavier Leroy