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 OAA23433; Fri, 2 Mar 2001 14:18:14 +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 OAA23283 for ; Fri, 2 Mar 2001 14:18:13 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f22DI7901123; Fri, 2 Mar 2001 14:18:07 +0100 (MET) Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA23051; Fri, 2 Mar 2001 14:18:07 +0100 (MET) From: Pierre Weis Message-Id: <200103021318.OAA23051@pauillac.inria.fr> Subject: Re: [Caml-list] ocamldep In-Reply-To: <15002.34063.782669.109857@pc803> from Jean-Christophe Filliatre at "Feb 26, 101 05:32:15 pm" To: Jean-Christophe.Filliatre@lri.fr Date: Fri, 2 Mar 2001 14:18:07 +0100 (MET) Cc: ldanthon@ens-lyon.fr, caml-list@inria.fr, cdelage@ens-lyon.fr X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > #use is a toplevel directive : it is not valid in an Ocaml module but > only accepted in the Ocaml toplevel. ocamldep is designed to produce > the dependencies between some Ocaml modules and parses them to do so. > Thus #use produces a syntax error. > > -- > Jean-Christophe FILLIATRE > > Laure Danthony writes: > > bonjour > > > > VF : pourquoi camldep n'arrive pas à trouver dans les dépendances > > dans ce cas : > > fichier un.ml : #use "deux.ml";; > > ocamldep un.ml renvoie alors : > > Syntax error line1, char 0,1 > > > > 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 > > ------------------- > To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr This was a bug of ocamldep. I corrected it along with another bug concerning qualified record labels. Cvs reports that this occurred long time ago, early in the morning, during the last century: date: 2000/11/28 07:52:17; author: weis; state: Exp; lines: +13 -4 Correction du bug des labels d'enregistrement qualifies dont les noms de modules n'etaient pas pris en compte. Appel du parser sur l'entree use_file pour accepter aussi les fichiers de commandes. So, you could try the new version from the camlcvs source tree, or wait for the next V3.01 version of the language. Best regards, Pierre Weis INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/ ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr