Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] ocamldep
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Pierre Weis <Pierre.Weis@i...>
Subject: Re: [Caml-list] ocamldep
> #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