From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA23259; Tue, 22 Apr 2003 15:14:38 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA23226 for ; Tue, 22 Apr 2003 15:14:37 +0200 (MET DST) Received: from newext.lri.fr (ext.lri.fr [129.175.15.4]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h3MDEYv07124 for ; Tue, 22 Apr 2003 15:14:35 +0200 (MET DST) Received: from serveur-mail.lri.fr (serveur-mail [129.175.8.90]) by newext.lri.fr (8.12.9/jtpda-5.4) with ESMTP id h3MD1gVV029404 ; Tue, 22 Apr 2003 15:01:43 +0200 (MEST) Received: from lix.polytechnique.fr (monate@lri8-232 [129.175.8.232]) by serveur-mail.lri.fr (8.11.6p2/jtpda-5.3.2) with ESMTP id h3MD1gg01504 ; Tue, 22 Apr 2003 15:01:42 +0200 (MEST) Message-ID: <3EA53D22.3020807@lix.polytechnique.fr> Date: Tue, 22 Apr 2003 15:01:22 +0200 From: Benjamin Monate User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 MIME-Version: 1.0 To: Richard Jones CC: caml-list@inria.fr Subject: Re: [Caml-list] lablgtk newbie question References: <20030422105529.GA11783@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-MailScanner: Found to be clean X-Spam: no; 0.00; caml-list:01 lablgtk:01 newbie:01 usr:01 selects:01 initialized:01 threads:01 gtkinit:01 ocamlc:01 myfile:01 ocamlopt:01 cmx:01 bin:01 cmo:01 cmxa:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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