From: Benjamin Monate <monate@lix.polytechnique.fr>
To: Richard Jones <rich@annexia.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] lablgtk newbie question
Date: Tue, 22 Apr 2003 15:01:22 +0200 [thread overview]
Message-ID: <3EA53D22.3020807@lix.polytechnique.fr> (raw)
In-Reply-To: <20030422105529.GA11783@redhat.com>
Richard Jones wrote:
>Why do I have to run lablgtk programs using the 'lablgtk' interpreter?
>What does this do above and beyond ordinary /usr/bin/ocaml?
>
>
It a very simple convenience wrapper which selects a good precompiled
toplevel with Gtk initialized.
You can get rid of it :
- for programs without threads, just start
ocaml -I +lablgtk2 lablgtk.cma gtkInit.cmo
- with threads :
ocaml -I +threads -I +lablgtk2 unix.cma threads.cma lablgtk.cma
gtkThread.cmo gtkInit.cmo gtkThInit.cmo
Replace lablgtk2 by lablgtk if you are a Gtk 1.* user.
>It kind of reminds me (in a not very happy way) of the old problems
>with Tcl/Tk where you needed to use a different version of 'wish' for
>each extension you compiled in. Tell me this is not the same thing ...
>
>
This is not the same thing :-)
Moreover you may prefer to compile your programs instead of using an
interactive toplevel.
Use
ocamlc -I +lablgtk2 lablgtk.cma gtkInit.cmo myfile.ml
to produce portable bytecode or even
ocamlopt -I +lablgtk2 lablgtk.cmxa gtkInit.cmx myfile.ml
to produce native code.
Cheers
Benjamin
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2003-04-22 13:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-22 10:55 Richard Jones
2003-04-22 11:42 ` Richard Jones
2003-04-22 13:01 ` Benjamin Monate [this message]
2003-04-22 13:08 ` Eric C. Cooper
2003-04-22 13:12 ` Jacques Garrigue
2003-04-22 13:28 ` Richard Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3EA53D22.3020807@lix.polytechnique.fr \
--to=monate@lix.polytechnique.fr \
--cc=caml-list@inria.fr \
--cc=rich@annexia.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox