caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Error using lablgtk
@ 2001-09-01 22:28 José Romildo Malaquias
  2001-09-01 23:01 ` Nicolas George
  0 siblings, 1 reply; 2+ messages in thread
From: José Romildo Malaquias @ 2001-09-01 22:28 UTC (permalink / raw)
  To: caml-list

Hello.

After compiling and installing lablgtk, I am not succeeding in
my first compilation attempt. The command

	$ lablgtk -labels -o hello hello.ml

gives me

	Unknown option -w.

Any hints?

I am running a Red Hat Linux 7.1 box with ocaml-3.02 from
the caml ftp site.

Thanks.

Romildo
-- 
Prof. José Romildo Malaquias <romildo@uber.com.br> <romildo@iceb.ufop.br>
Departamento de Computação - Universidade Federal de Ouro Preto
Brasil
-------------------
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] Error using lablgtk
  2001-09-01 22:28 [Caml-list] Error using lablgtk José Romildo Malaquias
@ 2001-09-01 23:01 ` Nicolas George
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas George @ 2001-09-01 23:01 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-09-01 23:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-01 22:28 [Caml-list] Error using lablgtk José Romildo Malaquias
2001-09-01 23:01 ` Nicolas George

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).