caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
To: "Joel Reymont" <joelr1@gmail.com>
Cc: "Caml List" <caml-list@inria.fr>
Subject: Re: [Caml-list] ocamlbuild and automatic dependencies
Date: Wed, 14 Mar 2007 13:43:37 +0100	[thread overview]
Message-ID: <cd67f63a0703140543p3596c0aetbf59b0da4f99c720@mail.gmail.com> (raw)
In-Reply-To: <729DDA34-5FBE-4570-B10F-B2443B58A2F1@gmail.com>

On 3/14/07, Joel Reymont <joelr1@gmail.com> wrote:
> 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

That's correct

> 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'

That's strange easy.cmo is missing.

Can you try "ocamlbuild easy.byte" ?

> 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.

That's strange since the only interaction is via ocamldep where the
output is located in _build/xxx.ml.depends


-- 
Nicolas Pouillard


  reply	other threads:[~2007-03-14 12:43 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-14 12:14 Joel Reymont
2007-03-14 12:24 ` [Caml-list] " Nicolas Pouillard
2007-03-14 12:36   ` Joel Reymont
2007-03-14 12:43     ` Nicolas Pouillard [this message]
2007-03-14 12:47       ` Joel Reymont
2007-03-14 13:11         ` Nicolas Pouillard
2007-03-14 20:11           ` skaller
2007-03-14 20:57             ` Alain Frisch
2007-03-15  3:46               ` skaller
2007-03-16 14:00           ` Joel Reymont
2007-03-16 14:22             ` Daniel de Rauglaudre
2007-03-17  0:18               ` skaller
2007-03-17  3:01                 ` Daniel de Rauglaudre
2007-03-17  8:14                 ` Alain Frisch
2007-03-17 13:52                   ` Modules for Dummies skaller
2007-03-16 14:40             ` [Caml-list] ocamlbuild and automatic dependencies Jacques Garrigue

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cd67f63a0703140543p3596c0aetbf59b0da4f99c720@mail.gmail.com \
    --to=nicolas.pouillard@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=joelr1@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).