coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Beta Ziliani <beta AT mpi-sws.org>
- To: St�phane Glondu <steph AT glondu.net>
- Cc: Coq Club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] ML top level not working for me
- Date: Fri, 30 Dec 2011 13:45:13 +0100
On Fri, Dec 30, 2011 at 1:36 PM, Stéphane Glondu <steph AT glondu.net> wrote:
Thanks Stephane for your detailed answer, and also thanks to Hugo, Jeremie, and Andrej for helping me figure out what was going on.
Happy new year,
Beta
You have to issue "#directory" directives first:
#directory "/usr/lib/coq/interp";;
#directory "/usr/lib/coq/kernel";;
#directory "/usr/lib/coq/lib";;
#directory "/usr/lib/coq/library";;
etc.
one for each directory containing the .cmi file of a module you want to
access (adapt /usr/lib/coq/ accordingly). With zsh, you can generate a
"directories" file with the following command:
for u in $COQROOT/**/*.cmi; do echo '#directory "'"${u%/*}"'";;'; done |
sort -u > directories
Then, you can run '#use "directories";;' before running commands from
e.g. dev/include.
It seems that #directory are implicit for each "-I" given when linking
coqtop.byte, which may explain why you don't have to run them when the
source tree is still there.
Cheers,
--
Stéphane
Thanks Stephane for your detailed answer, and also thanks to Hugo, Jeremie, and Andrej for helping me figure out what was going on.
Happy new year,
Beta
- [Coq-Club] ML top level not working for me, Beta Ziliani
- Re: [Coq-Club] ML top level not working for me,
Hugo Herbelin
- Re: [Coq-Club] ML top level not working for me,
Beta Ziliani
- Re: [Coq-Club] ML top level not working for me,
Jérémie Koenig
- Re: [Coq-Club] ML top level not working for me,
Beta Ziliani
- Re: [Coq-Club] ML top level not working for me,
Beta Ziliani
- Re: [Coq-Club] ML top level not working for me, Beta Ziliani
- Re: [Coq-Club] ML top level not working for me,
Beta Ziliani
- Re: [Coq-Club] ML top level not working for me,
Beta Ziliani
- Re: [Coq-Club] ML top level not working for me,
Jérémie Koenig
- Re: [Coq-Club] ML top level not working for me,
Beta Ziliani
- Re: [Coq-Club] ML top level not working for me,
Stéphane Glondu
- Re: [Coq-Club] ML top level not working for me, Beta Ziliani
- Re: [Coq-Club] ML top level not working for me,
Hugo Herbelin
Archive powered by MhonArc 2.6.16.