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 RAA02087; Mon, 26 Feb 2001 17:53:26 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA02095 for ; Mon, 26 Feb 2001 17:53:26 +0100 (MET) Received: from buffalo.ens-lyon.fr (buffalo.ens-lyon.fr [140.77.1.8]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f1QGrKv20980 for ; Mon, 26 Feb 2001 17:53:20 +0100 (MET) Received: from pc-bioinfo1.ibcp.fr (IDENT:martin@pc-bioinfo1.ibcp.fr [193.51.160.63]) by buffalo.ens-lyon.fr (8.11.2/8.11.2) with SMTP id f1QGrFj29381; Mon, 26 Feb 2001 17:53:16 +0100 (MET) Date: Mon, 26 Feb 2001 17:50:28 +0100 (CET) From: Martin Jambon X-Sender: To: Laure Danthony cc: , Christophe Delage Subject: Re: [Caml-list] ocamldep In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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