coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Helmut Brandl <helmut.luis.brandl AT gmail.com>
- To: Coq-Club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] How to create a makefile for a project using libraries?
- Date: Fri, 9 Feb 2018 19:14:54 -0600
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=helmut.luis.brandl AT gmail.com; spf=Pass smtp.mailfrom=helmut.luis.brandl AT gmail.com; spf=None smtp.helo=postmaster AT mail-wr0-f171.google.com
- Ironport-phdr: 9a23:CtYUjBNSyVKu8tOI38wl6mtUPXoX/o7sNwtQ0KIMzox0LfT+rarrMEGX3/hxlliBBdydt6odzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlViDanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0yRD+s7bpkSAXwhSgFOT438G/ZhM9tgqxFvB2svAZwz5LObYyPKPZyYqHQcNUHTmRBRMZRUClBD5u+YYQRC+oBOPtYr5XgrFYTtxuxHw+sC/7ryjRVgXL23bM10+AkEQHbwAwsBdYOsGnVrNXuLqsdSvq1w7POzTrea/Nbwjj96I3SfRAgpfGAR65/cc3UyUQ2EQ7Ok1ueqYvgPzyP1+QNtXCW7+tmVeK1im4osRt9oja1xsoql4LHhZoVx0ja+SllxIs5P961RU5hbdK5DpddtDuWO5Z0T88/RWxjpTw0xaccuZGheSgH0JQnyADba/yAa4WI5wjsVOeVITthinNlYq6ziw+88US9yODwS9O40FlNripCndnMsm4C2wbP5ciAT/tx5kah2TCR2ADP8uxIP1w4mK7BJ5MiwrM8jIcfvVrAEyPshUn7jrKael0h+uey6uTnZrvmpoWbN49xkgz+Mrohmsi6AeQlLggCRWyb+fm91L3450H2W69KgecwkqbEtJDXPssbpqujDA9U1oYv8QqwDzCj0NgAh3kIMEpFeA6bj4juI1zBPPf4De6mj1uwlDdr2uvJM6b6ApTNK3jDiK3ucax8605a0gozzMpQ64haCrEbc7rPXRras8WdJRskOUTgyOH+Td55y4k2WGSVA6bfPrmE4nGS4ed6A+SIYZIJ8BznIv4p47a6jXI9nEIBO6203IBRYmqxGPhiC0qcaHvoxNwGFDFZ7UIFUOX2hQjaAnZobHGoUvdkv2BpOMedFY7GA7uVrvmE1Sa/EIdRYzkfWF+JGHbsMY6DXqVVMX7AEopaijUBEIOZZco5zxj37V31zrNmKqzf/ShK7cu+hugw3PXakFQJzRIxD8mZ1DvTHWR9n2dNWCVuma4m/hU7xVCE3qx1xfdfEI4L6g==
On Feb 9, 2018 16:19, "Pierre Courtieu" <pierre.courtieu AT gmail.com> wrote:
Or you can just use -R options in _coqProject files?P.
Hi Pierre.
I have tried already the following:
Added "-R . Mylib" to the _CoqProject file of the library. Then issued 'make install' after successful compilation.
In the project using the common library I tried in the sourcefile 'Require Import Mylib.Name'.
Compiling the project I get '.../Mylib/Name.vo contains library Name and not Mylib.Name'.
Using only 'Require Import Name' does not work, because the compiler does not find it.
Regards
Helmut
Le ven. 9 févr. 2018 à 23:17, Théo Zimmermann <theo.zimmi AT gmail.com> a écrit :ThéoHi,You probably want to use the $COQPATH environment variable instead. See https://coq.inria.fr/refman/commands.html#EnvVariables and https://coq.inria.fr/refman/gallina-ext.html#loadpath.Regards,Le ven. 9 févr. 2018 à 20:32, Helmut Brandl <helmut.brandl AT gmx.net> a écrit :Hello coq-clubbers.
I have the following problem with the creation of a makefile:
- I have a coq library with several common function (i.e. a collection of *.v files). The libraries can be processed find with a proper _CoqProject file which as basically the list of source files. The program ‘coq_makefile’ generates a makefile whose usage by gnu make creates the corresponding *.vo files.
- I have two independent coq projects which want to use the library. The coq compiler needs some instructions on how to find the library objects. However for obvious reasons I don’t want to put ‘Add LoadPath’ statements into my source files.
Is there a generic way to solve this problem? Maybe the solution is so simple that I just don’t see it by reading the manual. Thanks for any hint.
Regards
Helmut
- [Coq-Club] How to create a makefile for a project using libraries?, Helmut Brandl, 02/09/2018
- Re: [Coq-Club] How to create a makefile for a project using libraries?, Théo Zimmermann, 02/09/2018
- Re: [Coq-Club] How to create a makefile for a project using libraries?, Pierre Courtieu, 02/09/2018
- Re: [Coq-Club] How to create a makefile for a project using libraries?, Helmut Brandl, 02/10/2018
- Re: [Coq-Club] How to create a makefile for a project using libraries?, Helmut Brandl, 02/10/2018
- Re: [Coq-Club] How to create a makefile for a project using libraries?, Pierre Courtieu, 02/10/2018
- Re: [Coq-Club] How to create a makefile for a project using libraries?, Théo Zimmermann, 02/10/2018
- Re: [Coq-Club] How to create a makefile for a project using libraries?, Helmut Brandl, 02/11/2018
- Re: [Coq-Club] How to create a makefile for a project using libraries?, Théo Zimmermann, 02/11/2018
- Re: [Coq-Club] How to create a makefile for a project using libraries?, Helmut Brandl, 02/12/2018
- Re: [Coq-Club] How to create a makefile for a project using libraries?, Helmut Brandl, 02/11/2018
- Re: [Coq-Club] How to create a makefile for a project using libraries?, Helmut Brandl, 02/14/2018
- Re: [Coq-Club] How to create a makefile for a project using libraries?, Helmut Brandl, 02/10/2018
- Re: [Coq-Club] How to create a makefile for a project using libraries?, Helmut Brandl, 02/10/2018
- Re: [Coq-Club] How to create a makefile for a project using libraries?, Pierre Courtieu, 02/09/2018
- Re: [Coq-Club] How to create a makefile for a project using libraries?, Théo Zimmermann, 02/09/2018
Archive powered by MHonArc 2.6.18.