caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David Monniaux <David.Monniaux@ens.fr>
To: Ian Zimmerman <itz@speakeasy.org>
Cc: OCAML <caml-list@inria.fr>
Subject: Re: [Caml-list] -i option to compiler
Date: Wed, 9 Jan 2002 22:30:55 +0100 (MET)	[thread overview]
Message-ID: <Pine.GSO.4.03.10201092227100.17006-100000@basilic.ens.fr> (raw)
In-Reply-To: <861ygzb4sx.fsf@speakeasy.org>

On 9 Jan 2002, Ian Zimmerman wrote:

> kronstadt:~$ ocamlc -i foo.ml > foo.mli
> I/O error: foo.cmi: No such file or directory

This one is classical.

When you use > foo.mli, the shell creates foo.mli BEFORE running ocamlc.
So when ocamlc sees that there is a .mli file, it looks for the
corresponding .cmi and complains loudly that it does not exist.

The solution is to do
ocamlc -i foo.ml > foo.mli.tmp
mv foo.mli.fmp foo.ml

I guess that the compiler should accept a -output-mli option or something
similar, to avoid the above kludge.


David Monniaux            http://www.di.ens.fr/~monniaux
Laboratoire d'informatique de l'École Normale Supérieure,
Paris, France

-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


  reply	other threads:[~2002-01-09 21:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-09 21:19 Ian Zimmerman
2002-01-09 21:30 ` David Monniaux [this message]
2002-01-09 23:13   ` Eric C. Cooper
2002-01-09 23:24     ` Ian Zimmerman
2002-01-10  1:57       ` Jacques Garrigue

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.GSO.4.03.10201092227100.17006-100000@basilic.ens.fr \
    --to=david.monniaux@ens.fr \
    --cc=caml-list@inria.fr \
    --cc=itz@speakeasy.org \
    /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).