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] Error using lablgtk
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-09-01 (23:41)
From: Nicolas George <nicolas.george@e...>
Subject: Re: [Caml-list] Error using lablgtk
Le samedi 01 septembre 2001 à 19:28, José Romildo Malaquias a écrit :
> 	$ lablgtk -labels -o hello hello.ml

To compile programs using LablGtk, you must use the regular OCaml compiler,
and link with the library. Something like that:

ocamlc.opt -o hello -labels lablgtk.cma hello.ml

The lablgtk command is a toplevel including the library (or, to be exact,
it is a shell script starting the true toplevel with some options).

Note also that examples programs that comes with LablGtk are intended to be
run as script using this toplevel, because they do not call

But I do not understand why the -w option (added by the script) is
rejected: the -w option is correct for toplevels. The -o option should be
rejected instead.
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr