Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
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
Date: Tue, 9 Mar 1999 11:40:41 +0100	[thread overview]
Message-ID: <19990309114041.12790@pauillac.inria.fr> (raw)
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




      reply	other threads:[~1999-03-09 12:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-05 20:52 David McClain
1999-03-09 10:40 ` Xavier Leroy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19990309114041.12790@pauillac.inria.fr \
    --to=xavier.leroy@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=dmcclain@azstarnet.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox