caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Martin Jambon <m.jambon@ibcp.fr>
To: Laure Danthony <ldanthon@ens-lyon.fr>
Cc: <caml-list@inria.fr>, Christophe Delage <cdelage@ens-lyon.fr>
Subject: Re: [Caml-list] ocamldep
Date: Mon, 26 Feb 2001 17:50:28 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.4.30.0102261731080.28733-100000@pc-bioinfo1.ibcp.fr> (raw)
In-Reply-To: <Pine.GSO.4.21.0102261705440.12209-100000@alize>

On Mon, 26 Feb 2001, Laure Danthony wrote:

> EV : why do ocamldep not find the dependencies in that case :
> 	file one.ml : #use "two.ml";;
> 	ocamldep one.ml says :
> Syntax error line1, char 0,1

If you want to split your code into several source files, modules, that
is:

-- file two.ml --
let f = ...
-----------------


-- file one.ml --
let _ =
  ...
  Two.f ...
  ...
-----------------

or :

-- file one.ml --
open Two

let _ =
  ...
  f ...
  ...
-----------------


two.ml must be compiled before one.ml, and that's what ocamldep has been
designed for.

For further details on modules, have a look at the reference manual:
http://caml.inria.fr/ocaml/htmlman/index.html


-- Martin

-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


  parent reply	other threads:[~2001-02-26 16:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-26 16:09 Laure Danthony
2001-02-26 16:32 ` Jean-Christophe Filliatre
2001-03-02 13:18   ` Pierre Weis
2001-02-26 16:50 ` Martin Jambon [this message]
2004-05-08  3:37 skaller
2004-05-08  7:42 ` Jean-Baptiste Rouquier
2004-05-08  8:56 ` Richard Jones
2004-05-08  9:05 ` Nicolas Cannasse
2004-05-08 10:55   ` skaller
2004-05-08 11:11     ` Nicolas Cannasse
2004-05-08  9:56 ` Stefano Zacchiroli

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=Pine.LNX.4.30.0102261731080.28733-100000@pc-bioinfo1.ibcp.fr \
    --to=m.jambon@ibcp.fr \
    --cc=caml-list@inria.fr \
    --cc=cdelage@ens-lyon.fr \
    --cc=ldanthon@ens-lyon.fr \
    /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).