Date: Tue, 9 Mar 1999 11:40:41 +0100
From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: David McClain <dmcclain@azstarnet.com>, Liste CAML <caml-list@inria.fr>
Subject: Re: OCAML 2.02 Distribution for Windows
In-Reply-To: <000301be674a$13c91a60$210148bf@dylan>; from David McClain on Fri, Mar 05, 1999 at 01:52:24PM -0700
> 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 helloworld.ml \
\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
This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:20 MET