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 SAA09319; Mon, 12 Nov 2001 18:44:04 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA09515 for caml-list@pauillac.inria.fr; Mon, 12 Nov 2001 18:44:03 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA02769 for ; Mon, 12 Nov 2001 14:37:07 +0100 (MET) Received: from maties1.sun.ac.za (maties1.sun.ac.za [146.232.128.1]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id fACDb4H00399 for ; Mon, 12 Nov 2001 14:37:06 +0100 (MET) Received: from bywoner.sun.ac.za ([146.232.129.121]) by maties1.sun.ac.za with esmtp (Exim 3.33 #3) id 163HGd-0001WL-00 for caml-list@inria.fr; Mon, 12 Nov 2001 15:36:51 +0200 Received: from js by bywoner.sun.ac.za with local (Exim 3.32 #1 (Debian)) id 163HGa-0000Hx-00 for ; Mon, 12 Nov 2001 15:36:48 +0200 Date: Mon, 12 Nov 2001 15:36:48 +0200 From: Johann Spies To: caml-list@inria.fr Subject: [Caml-list] Ocamlmakefile and Lablgtk Message-ID: <20011112153648.A736@adept.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i X-Scanner: exiscan *163HGd-0001WL-00*lpnv07ihhuo* http://duncanthrax.net/exiscan/ Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk am trying to figure out how to use Ocamlmakefile to compile lablgtk programs. With the following Makefile: -------------------------------------------------------- OCAMLMAKEFILE=/usr/share/ocaml-tools/OcamlMakefile SOURCES=calc.ml RESULT=calc LIBS=lablgtk gtkInit INCDIRS=+lablgtk OCAMLFLAGS=-labels include $(OCAMLMAKEFILE) ---------------------------------------------------------- I get : ---------------------------------------------------------- js-19:07:58-/tmp$make make[1]: Entering directory `/tmp' ocamlc -I +lablgtk lablgtk.cma gtkInit.cma -o calc \ calc.cmo Cannot find file gtkInit.cma make[1]: *** [calc] Error 2 make[1]: Leaving directory `/tmp' make: *** [byte-code] Error 2 js-19:07:59-/tmp$make nc make[1]: Entering directory `/tmp' ocamlopt -I +lablgtk lablgtk.cmxa gtkInit.cmxa -o calc \ calc.cmx Cannot find file gtkInit.cmxa make[1]: *** [calc] Error 2 make[1]: Leaving directory `/tmp' make: *** [native-code] Error 2 ----------------------------------------------------------- How do I inform the compiler through Ocamlmakefile to use options gtkInit.cmx as in ocamlopt -I +lablgtk -labels -o testgtk.opt lablgtk.cmxa gtkInit.cmx testgtk.ml ? Regards. Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie, Universiteit van Stellenbosch "He that loveth father of mother more than me is not worthy of me; and he that loveth son or daughter more than me is not worthy of me. And he that taketh not his cross, and followeth after me, is not worthy of me." Matthew 10:37,38 ------------------- 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