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 TAA09843; Mon, 12 Nov 2001 19:01:58 +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 TAA09815 for caml-list@pauillac.inria.fr; Mon, 12 Nov 2001 19:01:57 +0100 (MET) 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 TAA09866 for ; Mon, 12 Nov 2001 19:00:05 +0100 (MET) Received: from chopin.ai.univie.ac.at (chopin.ai.univie.ac.at [131.130.174.170]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id fACI04n13633 for ; Mon, 12 Nov 2001 19:00:04 +0100 (MET) Received: (from markus@localhost) by chopin.ai.univie.ac.at (8.9.3/8.9.3/Debian 8.9.3-21) id SAA06673; Mon, 12 Nov 2001 18:59:39 +0100 Date: Mon, 12 Nov 2001 18:59:39 +0100 From: Markus Mottl To: Johann Spies Cc: caml-list@inria.fr Subject: Re: [Caml-list] Ocamlmakefile and Lablgtk Message-ID: <20011112185939.B4777@chopin.ai.univie.ac.at> References: <20011112153648.A736@adept.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011112153648.A736@adept.co.za>; from jspies@sun.ac.za on Mon, Nov 12, 2001 at 15:36:48 +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, 12 Nov 2001, Johann Spies wrote: > -------------------------------------------------------- > OCAMLMAKEFILE=/usr/share/ocaml-tools/OcamlMakefile > SOURCES=calc.ml > RESULT=calc > LIBS=lablgtk gtkInit > INCDIRS=+lablgtk > OCAMLFLAGS=-labels > include $(OCAMLMAKEFILE) > ---------------------------------------------------------- [snip] > How do I inform the compiler through Ocamlmakefile to use options > gtkInit.cmx as in I assume the problem is that you haven't specified where to find libraries. Note that INCDIRS is only for interface files (.cmi), whereas LIBDIRS is necessary if there are libraries in the directory against which you want to link. Therefore, add this line: LIBDIRS=+lablgtk Hope that helps! Regards, Markus Mottl -- Markus Mottl markus@oefai.at Austrian Research Institute for Artificial Intelligence http://www.oefai.at/~markus ------------------- 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