From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id B7893BBAF for ; Sun, 12 Oct 2008 20:43:02 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvoCAOHh8UjCpx6wiGdsb2JhbACTWwEBARUiozyBbA X-IronPort-AV: E=Sophos;i="4.33,397,1220220000"; d="scan'208";a="30240989" Received: from smtpmin.univ-orleans.fr (HELO min.univ-orleans.fr) ([194.167.30.176]) by mail4-smtp-sop.national.inria.fr with ESMTP; 12 Oct 2008 20:43:02 +0200 Received: from smtps.univ-orleans.fr (localhost [127.0.0.1]) by min.univ-orleans.fr (Postfix) with ESMTP id C5C4F12B48F; Sun, 12 Oct 2008 20:43:01 +0200 (CEST) Received: from [192.168.0.12] (ras75-4-82-235-58-110.fbx.proxad.net [82.235.58.110]) by smtps.univ-orleans.fr (Postfix) with ESMTP id 239D036E60; Sun, 12 Oct 2008 20:43:05 +0200 (CEST) Subject: Re: [Caml-list] ANN OCaml Batteries Included alpha 1 From: David Teller To: peng.zang@gmail.com Cc: caml-list@yquem.inria.fr, OCaml In-Reply-To: <200810121300.23231.peng.zang@gmail.com> References: <1223732914.7333.22.camel@Blefuscu> <200810120142.23667.peng.zang@gmail.com> <1223819953.6213.22.camel@Blefuscu> <200810121300.23231.peng.zang@gmail.com> Content-Type: text/plain Date: Sun, 12 Oct 2008 20:43:08 +0200 Message-Id: <1223836989.6213.37.camel@Blefuscu> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocaml:01 univ-orleans:01 bug:01 hash:01 cheers:01 toplevel:01 corresponds:01 makefile:01 toplevel:01 topfind:01 mutable:01 univ-orleans:01 lifo:01 peng:98 peng:98 I can reproduce the error. If you don't mind, let's continue that discussion on the Batteries-devel mailing-list [1]. Thanks for the bug report, David [1] http://lists.forge.ocamlcore.org/cgi-bin/mailman/listinfo/batteries-devel On Sun, 2008-10-12 at 13:00 -0400, Peng Zang wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Sunday 12 October 2008 09:59:13 am David Teller wrote: > > Hi, > > > > It seems we forgot one dependency in the README: you need Bin-prot to > > get Batteries to work. I must confess that we could have removed that > > dependency for Alpha 1, as we don't use any feature of Bin-prot yet. > > > > Cheers, > > David > > > Thanks for your help. Installing Bin-prot has seemed to fix that error. > Unfortunately, now I get a different one. To give some context, I am trying > to create an equivalent toplevel init.ml file that corresponds to the > ocamlbuild _tags file. > > To build a project with Batteries all you need is "<*>: use_batteries" in the > _tags file. I don't really use ocamlbuild so I am assuming the _tags file > plays a similar role to your normal Makefile. > > My equivalent init.ml file which aims to start an ocamltoplevel in an > environment where any code that compiles will run in the toplevel consists, > so far of: > > #use "topfind" > #require "batteries" > > The new error is: Reference to undefined global `Ref' > > I am not familiar with Ref. It looks like it's a module in Batteries, so I'm > not sure why it's throwing this error. I tried to open Data.Mutable to see > if perhaps things worked despite the warning, but it does not appear to be > so. > > Any ideas? I've attached the complete output below for reference. > > > Thanks in advance, > > > Peng -- David Teller-Rajchenbach Security of Distributed Systems http://www.univ-orleans.fr/lifo/Members/David.Teller Angry researcher: French Universities need reforms, but the LRU act brings liquidations.