1

I would like to import the file of one of my projects when coding the current project.

i.e. Import the file ../ProjectA/fileA.v in ./fileB.v.

How can I do this via configuring the Makefile or _Coqproject.

shrubbroom
  • 45
  • 4
  • You can execute `make install` in `ProjectA` so that it is visible from `ProjectB`, or you can use the `COQPATH` environment variable to add `ProjectA` path to the locations used by Coq to locate libraries. See [this](https://stackoverflow.com/questions/47087271/why-does-make-using-coqproject-in-coqide-differ-from-coqc-on-the-commandlin/47160117#47160117) or [this](https://github.com/coq/coq/issues/4990). – eponier Nov 07 '19 at 08:56

1 Answers1

2

You add the following line at the beginning of the _CoqProject:

-R ../ProjectA SomeName

And then you should be able to write

From SomeName Require Import fileA.
Théo Winterhalter
  • 4,908
  • 2
  • 18
  • 34