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
[Caml-list] Compatibility Ocaml/labltk Linux -> Windows
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: jeanmarc.eber@l...
Subject: Re: [Caml-list] Compatibility Ocaml/labltk Linux -> Windows
Quoting Jacques Garrigue <>:

> From: Oliver Bandel <>
> > 
> > I want to develop an Ocaml-allpication on linux and
> > need it that it can run on windows too.
> > 
> > I need the typical OCaml-distribution but I also
> > need a GUI. I think about using labltk.
> > 
> > Is it possible to use applications, which are
> > running with labltk on linux also on windows?
> > Is it possible to port code, or can I use it
> > as is?
> For most uses, you need not change anything.
> There are few incompatibilities for specific functions
> * Fileinput on windows only works with sockets (if it works at all!)
>   Otherwise you have to do dark magic with threads, as in ocamlbrowser.
> * Fileselect on windows is very buggy. Trevor Jim contributed a fixed
>   version in the past, but it was rather heavily modified. Maybe some
>   other people have working versions. By the way, the ocamlbrowser
>   Fileselect works, but is heavily customized too.
> Outside of these two small modules, I know of no incompatibilities.

I can only confirm this. At LexiFi, we are implementing a (modestly complex,
honestly said) GUI under Linux that works just fine, after recompilation,
under Win32.

Note also that INRIA did a major cleanup of all the camlTk/lablTk stuff (mainly
a unification of the low level Tk interface of camlTk and lablTk) a
few months ago, one reason more to give it a try.

For a non trivial gui implemented under ocaml with camlTk, delivered
under win32 as well as under linux, have a look at:

Jean-Marc Eber
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: