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 OAA07358; Mon, 23 Apr 2001 14:52:45 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 OAA07367 for ; Mon, 23 Apr 2001 14:52:45 +0200 (MET DST) Received: from miss.wu-wien.ac.at (miss.wu-wien.ac.at [137.208.107.17]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f3NCqi923867 for ; Mon, 23 Apr 2001 14:52:44 +0200 (MET DST) Received: (from mottl@localhost) by miss.wu-wien.ac.at (8.9.0/8.9.0) id OAA07755; Mon, 23 Apr 2001 14:52:42 +0200 (MET DST) Date: Mon, 23 Apr 2001 14:52:42 +0200 From: Markus Mottl To: Franck Delaplace Cc: OCAML Subject: Re: [Caml-list] HELP on -a options for ocamlopt Message-ID: <20010423145242.A17454@miss.wu-wien.ac.at> References: <3AE3F6FA.92E33DC0@lami.univ-evry.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3AE3F6FA.92E33DC0@lami.univ-evry.fr>; from delapla@lami.univ-evry.fr on Mon, Apr 23, 2001 at 11:33:46 +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, 23 Apr 2001, Franck Delaplace wrote: > I try to built a library which contains several modules. > ocamlopt -a -o lib t1.cmx t2.cmx t3.cmx You have obviously forgotten to copy the compiled interface files (*.cmi). They are needed in the include path (e.g. in the same dir) if you want to access modules in the library. You can omit them on purpose if you do not want the library user to "see" some modules, e.g. implementations of internal stuff. But the publically accessible ones need the compiled interface files. Regards, Markus Mottl -- Markus Mottl, mottl@miss.wu-wien.ac.at, http://miss.wu-wien.ac.at/~mottl ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr