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 TAA14389; Thu, 15 Apr 2004 19:47:12 +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 TAA14282 for ; Thu, 15 Apr 2004 19:47:10 +0200 (MET DST) Received: from rabelais.socialtools.net (rabelais.socialtools.net [81.2.94.243]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i3FHmCjq032139 for ; Thu, 15 Apr 2004 19:48:12 +0200 Received: by rabelais.socialtools.net (Postfix, from userid 108) id 86364232DD; Thu, 15 Apr 2004 18:47:09 +0100 (BST) Received: from socialtools.net (chaucer.socialtools.net [81.2.94.242]) by rabelais.socialtools.net (Postfix) with ESMTP id AD339232DB; Thu, 15 Apr 2004 18:47:08 +0100 (BST) Message-ID: <407ECA8D.60809@socialtools.net> Date: Thu, 15 Apr 2004 18:46:53 +0100 From: Benjamin Geer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-gb, en, fr, it MIME-Version: 1.0 To: Matt Gushee Cc: caml-list@pauillac.inria.fr Subject: Re: [Caml-list] Adding libraries to mod_caml References: <20040414193002.GC29676@swordfish> In-Reply-To: <20040414193002.GC29676@swordfish> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on rabelais.socialtools.net X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.63 X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 gushee:01 cmas:01 module':01 dynlink:01 caml's:01 cmo:01 cmo:01 caml:01 caml:01 trivial:01 makefile:02 cma:03 wrote:03 library:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Matt Gushee wrote: > I added the > library path to OCAMLCINCS and the .cma file to ALL_CMAS, but I continue > to get 'unbound module' errors. I had a similar problem with CamlTemplate; you might have to do what I did, which is link a .cmo into mod_caml that calls a trivial function in CamlTemplate. This seemed to be necessary to convince Dynlink to load the things CamlTemplate depends on. See camlTemplateInit.ml in the CamlTemplate distribution[1], and the use of camlTemplateInit.cmo in mod_caml's Makefile. Ben [1] http://saucecode.org/camltemplate/ ------------------- 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