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 NAA20872; Thu, 27 Nov 2003 13:14:20 +0100 (MET) 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 NAA21555 for ; Thu, 27 Nov 2003 13:14:19 +0100 (MET) Received: from fichte.ai.univie.ac.at (fichte.ai.univie.ac.at [131.130.174.156]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hARCEI102748 for ; Thu, 27 Nov 2003 13:14:19 +0100 (MET) Received: from fichte.ai.univie.ac.at (markus@localhost [127.0.0.1]) by fichte.ai.univie.ac.at (8.12.3/8.12.3/Debian-6.6) with ESMTP id hARCEIHn027321; Thu, 27 Nov 2003 13:14:18 +0100 Received: (from markus@localhost) by fichte.ai.univie.ac.at (8.12.3/8.12.3/Debian-6.6) id hARCEHcG027320; Thu, 27 Nov 2003 13:14:17 +0100 Date: Thu, 27 Nov 2003 13:14:17 +0100 From: Markus Mottl To: Flavio Cc: caml-list@inria.fr Subject: Re: [Caml-list] OCamlMake and cmo files Message-ID: <20031127121417.GA27092@fichte.ai.univie.ac.at> Mail-Followup-To: Flavio , caml-list@inria.fr References: <200311271033.00088.sixdegreesoit@yahoo.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200311271033.00088.sixdegreesoit@yahoo.it> User-Agent: Mutt/1.4.1i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 ocamlmake:01 ocamlc:01 lablgtk:01 lablgtk:01 gtkinit:01 gtkinit:01 flags:01 cmo:01 cmo:01 byte:01 byte:01 nov:01 mottl:02 mottl:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, 27 Nov 2003, Flavio wrote: > and the error is > ocamlc -I +lablgtk2 lablgtk.cma gtkInit.cma -o editor editor.cmo > Cannot find file gtkInit.cma > > Right, the file is gtkInit.cmo but if i add the extension to the > filename it tells: Cannot find file gtkInit.cmo.cma There is a good reason why this is handled this way: the extension differs for byte- and native code libraries. If you want to link anything that is only available in byte code (or pass special flags to the byte code linker), just use the variable OCAMLBLDFLAGS (see README in the distribution for details). Everything you put in there will be passed verbatim in the linking stage. Regards, Markus Mottl -- Markus Mottl http://www.oefai.at/~markus markus@oefai.at ------------------- 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