English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] labltk and ocaml 3.01
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-05-10 (10:02)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] labltk and ocaml 3.01
From: <a9502276@unet.univie.ac.at>

> I'm completely new to FP and Caml in particular.
> I downloaded camltk417-2 and tried helloworld.ml:
> administrator@NTWSW2KJH /cygdrive/d/Temp
> $ labltk.exe helloworld.ml

The problem is clear enough: you are trying to use labltk with a
camltk program.
LablTk and CamlTk are two different libraries, but they share the same
module names, since LablTk is a dervative from CamlTk.
LablTk is included in the OCaml distribution, but CamlTk has to be
downloaded independently.
Both libraries have basically the same functionality, but they adopt a
different style: in CamlTk options are passed as lists of
constructors, while in LablTk optional arguments are used.

A few examples for LablTk are available, but infortunately they are
not included in the binary distribution for Windows. You have to get
the source distribution, and look in otherlibs/labltk/example.

On the other hand, if you want to use CamlTk, you must first compile
and install it.


        Jacques Garrigue
Jacques Garrigue      Kyoto University     garrigue at kurims.kyoto-u.ac.jp
		<A HREF=http://wwwfun.kurims.kyoto-u.ac.jp/~garrigue/>JG</A>
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr