From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 43EF2BB88 for ; Wed, 20 Jul 2005 08:21:46 +0200 (CEST) Received: from ext.lri.fr (ext.lri.fr [129.175.15.4]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j6K6Lj3D012282 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 20 Jul 2005 08:21:46 +0200 Received: from localhost (localhost [127.0.0.1]) by ext.lri.fr (Postfix) with ESMTP id C45B619E621; Wed, 20 Jul 2005 08:21:45 +0200 (CEST) Received: from ext.lri.fr ([127.0.0.1]) by localhost (ext.lri.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28377-03; Wed, 20 Jul 2005 08:21:45 +0200 (CEST) Received: from smtp.lri.fr (serveur3-5 [129.175.3.5]) by ext.lri.fr (Postfix) with ESMTP id B180E19E61C; Wed, 20 Jul 2005 08:21:45 +0200 (CEST) Received: from pc9-152 (pc9-152 [129.175.9.152]) by smtp.lri.fr (Postfix) with ESMTP id 9CF15CED98; Wed, 20 Jul 2005 08:21:45 +0200 (CEST) Received: from filliatr by pc9-152 with local (Exim 3.36 #1 (Debian)) id 1Dv7xh-0005Mm-00; Wed, 20 Jul 2005 08:21:45 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17117.60793.502273.919995@gargle.gargle.HOWL> Date: Wed, 20 Jul 2005 08:21:45 +0200 To: N.P.S.Sika@westminster.ac.uk Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] GTK In-Reply-To: <1121786775.42dd1b97b71c7@zeppo.wmin.ac.uk> References: <1121786775.42dd1b97b71c7@zeppo.wmin.ac.uk> X-Mailer: VM 7.19 under Emacs 21.4.1 From: Jean-Christophe Filliatre X-Virus-Scanned: by amavisd-new at lri.fr X-Miltered: at concorde with ID 42DDED79.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 gtk:01 filliatre:01 filliatre:01 lri:01 gtk:01 ocaml:01 gwindow:01 gmain:01 ocamlc:01 ocamlc:01 lablgtk:01 lablgtk:01 gtkinit:01 cmo:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 N.P.S.Sika@westminster.ac.uk writes: > > I try to compile my first GTK+2 code "base.ml" taken from the GTK Ocaml tutorial > from > > ------------- > (* file: base.ml *) > > let main () = > let window = GWindow.window () in > window#show (); > GMain.Main.main () > > let _ = main () > ------------------- > You can compile the above program with ocamlc using: > > ocamlc -I +lablgtk2 -o base lablgtk.cma gtkInit.cmo base.ml > > HOWEVER when I do that i get the following error message > > File "base.ml", line 4, characters 15-29: > Unbound value GWindow.window > > anyone got any idea what it is ? It is likely that lablgtk2 is not correctly installed on your system. Did you checked for gWindow.cmi in `ocamlc -where`/lablgtk2 for instance? To check your lablgtk2 installation, you can also try to launch the lablgtk2 toplevel, with the "lablgtk2" command. Then you can type in the sample code above directly in the toplevel. (But it is likely that you'll get the same error message, since it means that gWindow.cmi is not found). -- Jean-Christophe