Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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
GMain.Main.init.

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