From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 0C3E0BBD7 for ; Wed, 3 Aug 2005 16:50:07 +0200 (CEST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.191]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j73Eo6GZ016791 for ; Wed, 3 Aug 2005 16:50:06 +0200 Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1E0KZG-0000Yh-00; Wed, 03 Aug 2005 16:50:02 +0200 Received: from [84.167.129.10] (helo=gate.lan.gerd-stolpmann.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1E0KZG-0004B7-00; Wed, 03 Aug 2005 16:50:02 +0200 Received: from flakew.lan.gerd-stolpmann.de (flakew.lan.gerd-stolpmann.de [192.168.0.32]) by gate.lan.gerd-stolpmann.de (Postfix) with ESMTP id 5789BC17E; Wed, 3 Aug 2005 16:50:01 +0200 (CEST) Subject: Re: [Caml-list] gtk2 compiling problem From: Gerd Stolpmann To: N.P.S.Sika@westminster.ac.uk Cc: caml-list@yquem.inria.fr In-Reply-To: <1123079577.42f0d599176cc@zeppo.wmin.ac.uk> References: <1123079577.42f0d599176cc@zeppo.wmin.ac.uk> Content-Type: text/plain Date: Wed, 03 Aug 2005 16:50:00 +0200 Message-Id: <1123080601.12336.26.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:a6865a839c0178d9aa0ce41878507ea2 X-Miltered: at nez-perce with ID 42F0D99E.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 gtk:01 gerd:01 stolpmann:01 gtk:01 ocaml:01 gwindow:01 gmain:01 ocamlc:01 lablgtk:01 lablgtk:01 gtkinit:01 cmo:01 ocamlfind:01 ocamlc: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.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 Am Mittwoch, den 03.08.2005, 15:32 +0100 schrieb N.P.S.Sika@westminster.ac.uk: > > > Hi everybody , > > I had this problem addressed before but myself, I had to be off any computer for > some time so I am back with the same problem. > > I am having trouble with compiling any gtk2 code taken out of a tutorial of > Tony Gale and Ian Main adapted to Ocaml by SooHyoung Oh > --------------------- > > (* file: base.ml *) > > let main () = > let window = GWindow.window () in > window#show (); > GMain.Main.main () > > let _ = main () > ---------------------- > > it says that to compile i should do > ocamlc -I +lablgtk2 -o base lablgtk.cma gtkInit.cmo base.ml For GODI use ocamlfind ocamlc -package lablgtk2 -linkpkg -o base base.ml The path option "-I +foo" requires a certain directory layout GODI does not use. This ocamlfind command will work for all distributions, no matter how directories are organised. Gerd > but this is the error message i got > > ----------- > fishs-Computer:~/FYP/gtk fish$ ocamlc -I +lablgtk2 -o base lablgtk.cma gtkInit. > cmo base.ml > File "base.ml", line 4, characters 15-29: > Unbound value GWindow.window > ------------- > if it is of any help i have installed > > gtk2 libraries via Fink > lablgtk2 via Godi > > need help here guies. my final year project depends on it. > thanks > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de Telefon: 06151/153855 Telefax: 06151/997714 ------------------------------------------------------------