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=1.0 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 8C5BCBC0A for ; Wed, 14 Mar 2007 13:36:28 +0100 (CET) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2ECaR1X008207 for ; Wed, 14 Mar 2007 13:36:28 +0100 Received: by ug-out-1314.google.com with SMTP id k3so544695ugf for ; Wed, 14 Mar 2007 05:36:27 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=lnGJG8o6aa3p9z7/HZxD/fytFWSJPTlWtM2uunL6+l7NEhUk0gO2hckwIRRbLir/g4m18AX0VAUxbd0HZzCy6lBR6ZS5NdI0oSO+39S3UGQzFLjG2d0gb00B6awUcG1oAAPkMhZX1kv6DZf8MoWGw2q6IWXOE8aYNHP6vUb4oW8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=YOoSF2yKMwr/3XeZ0/KVROERzC6aA5XgXzwd10GcAXwMENO2S20izkyltq8oRu39+Xt17WrV1QbZO/il+IIQcR/RKF5MYmLn09ryq51BwlaurOxvrezShiwxNs939MKu6gvEfM8EXTntpkeuyYjNtDWUzJURPKtVWbzNX97fcfM= Received: by 10.67.19.13 with SMTP id w13mr1025517ugi.1173875787498; Wed, 14 Mar 2007 05:36:27 -0700 (PDT) Received: from ?192.168.1.33? ( [88.8.238.141]) by mx.google.com with ESMTP id 53sm782783ugn.2007.03.14.05.36.24; Wed, 14 Mar 2007 05:36:25 -0700 (PDT) In-Reply-To: References: <80E2E3A7-2603-4706-8186-566C6DA14452@gmail.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <729DDA34-5FBE-4570-B10F-B2443B58A2F1@gmail.com> Cc: "Caml List" Content-Transfer-Encoding: 7bit From: Joel Reymont Subject: Re: [Caml-list] ocamlbuild and automatic dependencies Date: Wed, 14 Mar 2007 12:36:20 +0000 To: "Nicolas Pouillard" X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 45F7EC4B.002 on discorde : j-chkmail score : XXX : 5/20 1 0.000 -> 3 X-Miltered: at discorde with ID 45F7EC4B.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; dependencies:01 ocamldep:01 ocamldep:01 byte:01 ocamlfind:01 ocamlc:01 -package:01 -linkpkg:01 cmo:01 cmo:01 parser:01 util:01 symtab:01 parser:01 lexer:01 Nicolas, On Mar 14, 2007, at 12:24 PM, Nicolas Pouillard wrote: > ocamlbuild runs ocamldep -module on your file so you can experiment > by yourself. generator.ml: open Ninja module E = Easy ocamldep -modules generator.ml generator.ml: Easy List Ninja String ocamlbuild test.byte -- + ocamlfind ocamlc -package ounit -linkpkg easy_code.cmo generator.cmo parser_util.cmo symtab.cmo easy_parser.cmo easy_lexer.cmo parser_test.cmo generator_test.cmo test.cmo -o test.byte Error while linking generator.cmo: Reference to undefined global `Easy' The warnings in the _log file are about OUnit which is an external library. There are no other warnings. Everything builds fine if I remove "module E = Easy" and replace all references to E.xxx with Easy.xxx. Thanks, Joel -- http://wagerlabs.com/