I have two short files: cc_test is given by
Lemma cc: 4 = 4. Proof. auto. Qed.
and libtest is given by
Require Import cc_test. Check cc.
When I execute
coqc -R . ClosureLib -top ClosureLib cc_test
in directory "/home/barry/svn/Coq/Closure_Calculus"
and
coqc -R "/home/barry/svn/Coq/Closure_Calculus" ClosureLib libtest
in its directory, I get the expected output
cc: 4 = 4
However, when the arguments to coqc above (from -R to the end) are placed in _CoqProject files, and I call Make makefile
and then Make
from the coqide menu, cc_test is okay but libtest yields output
File "./libtest.v", line 1, characters 15-22:
Error: Unable to locate library cc_test.
How should I modify the project files to make this work?
Comment: the coq reference manual (Chapter 15) does not mention any differences between these approaches. Also, the argument "-top ClosureLib"
seems to be necessary in the commandline approach, but does not appear to matter using make
as, in other experiments, I frequently get error messages saying that it found Top.foo but not ClosureLib.foo.