From: "Joshua D. Guttman" <guttman@linus.mitre.org>
To: Xavier Leroy <Xavier.Leroy@inria.fr>
Cc: guttman@linus.mitre.org, caml-list@inria.fr
Subject: Re: OCaml: problems compiling
Date: Tue, 22 Jul 1997 11:50:29 -0400 [thread overview]
Message-ID: <199707221550.LAA21532@apollonius.mitre.org> (raw)
In-Reply-To: Xavier Leroy's message of Mon, 21 Jul 1997 18:02:43 +0200 (MET DST)
> > I/O error: foo.cmi: No such file or directory
> >
> > Note that it's complaining about the .cmi file for the
> > file currently being compiled, not some other module.
> >
> > How can I avoid the error to begin with?
>
> You should compile the foo.mli file before compiling the foo.ml file.
> That will produce the missing foo.cmi file.
>
> Alternatively, if you don't have an interface file foo.mli in the same
> directory as foo.ml, the compiler will create foo.cmi directly from
> foo.ml.
>
Is there some convenient way to set up a makefile so that it will
ensure that foo.cmi is generated (or re-generated) before foo.cmo or
foo.cmx?
Not being a magician of `make', I didn't see an easy way to express
the conditional on there existing a foo.mli file. Of course, in the
ideal case one would actually see whether it was possible to make
foo.mli, e.g. from foo.mly.
Thanks.
Josh
next prev parent reply other threads:[~1997-07-22 16:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-07-18 0:21 Paul A. Steckler
1997-07-21 16:02 ` Xavier Leroy
1997-07-22 15:50 ` Joshua D. Guttman [this message]
1997-07-22 16:25 ` Pierre Weis
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=199707221550.LAA21532@apollonius.mitre.org \
--to=guttman@linus.mitre.org \
--cc=Xavier.Leroy@inria.fr \
--cc=caml-list@inria.fr \
--cc=guttman@mitre.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