English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
disagreement over interface
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-02-22 (17:21)
From: Hal Daume III <hdaume@I...>
Subject: disagreement over interface
Say I have foo.ml and I 

  ocamlc -c foo.ml

to produce foo.cmo.

Then in the ocaml toplevel, I do:

  #load "foo.cmo";;

to load the bytecode.  Now, I make changes to foo.ml and recompile it:

  ocamlc -c foo.ml

If I then go to reload it, I get:

  #load "foo.cmo";;
  The files foo.cmo
  and foo.cmo
  disagree over interface Foo

The only way I have found to remedy this is to quit my current top level, 
rerun and then load foo.cmo from there, but this is a major pain.  I 
assume I'm just missing something stupid.  Can someone tell me what to do?


 - Hal

 Hal Daume III                                   | hdaume@isi.edu
 "Arrest this man, he talks in maths."           | www.isi.edu/~hdaume