Coq makefile “Top.” Prefix

一个人想着一个人 提交于 2020-01-14 12:38:44

问题


I am using the automatic Coq 8.5 makefile generator. This makefile prefixes all modules by "Top." . Now let's say you run a lot of files by make and then want to change/debug some file in the IDE. Then the annoying fact is that Coq complains it cannot find the compiled other files, because in the IDE it assumes the names without the "Top" prefix. I tried to tweak the makefile to get rid of this prefix. But I always ended in some error message of the make. Can someone show me either how to remove "Top" prefix in make or tell the IDE to use the "Top" prefix.


回答1:


You can start CoqIDE with the following arguments coqide -R . Top.

This will get rid of the following error Error: The file ..../Logic.vo contains library Top.Logic and not library Logic.




回答2:


This is annoying indeed. In order to avoid that kind of annoyance, always start your _CoqProject with a line listing options:

-Q . MyProject

To note: the options you can put on the first line of your _CoqProject are the ones listed when calling coqtop -help.



来源:https://stackoverflow.com/questions/43138770/coq-makefile-top-prefix

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!