coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Chantal Keller <chantal.keller AT wanadoo.fr>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] How to compile plugins with multiple OCaml files?
- Date: Tue, 11 Jul 2017 07:56:46 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=chantal.keller AT wanadoo.fr; spf=None smtp.mailfrom=chantal.keller AT wanadoo.fr; spf=None smtp.helo=postmaster AT ext.lri.fr
- Ironport-phdr: 9a23:oehODhN0CVYYJ5ETXc0l6mtUPXoX/o7sNwtQ0KIMzox0Lf//rarrMEGX3/hxlliBBdydsKMbzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZPebgFKiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0yRD+s7bpkSAXwhSkaKTA5/mHZhM9+gq1Vrx2upQBwzYHPbYGJN/dzZL/Rcc8USGdDWMtaSixPApm7b4sKF+cMI+ZYoJP7p1sStxS+ARSnCubxxT9Mgn/5w7c62PkmHA7a3AwvBdQOsGjOo9XxLqsSUv66zK3MzTrddfNbwjn855LOch87vP6MWrVwfdDfyUk1Dg7IiEibp4LiPzOQzOsNsm6b4vJvVeKojG4npAVxrSa1yscikInEgJ8exFPc9Shh3Yo5O9m1RFRmbdOmEJZcrTyWOotsTs4tRWxjpTw0xaccuZGheSgH0JQnyADba/yAa4WH/B3iVPqLLTd8nnJleaizhxio8US4y+38UNe70EpSoyZYjNXBsmoB2wHR58WHUPdx40es1SyA2gzL7+FLO0E0la7VK547xb4wk4IevljDHiDsnkX2kLWZdkE+9uir9evnZrHmqYGGN4JvhADxKKIuldaiDuQ/NQgCRWab+f6k2L354UL5WKlKjuExkqTBrJ/aIt0bqrelDA9Rz4Ys8A2yDyym0dQdhXkINkhJeBOBj4jzOlHBOur0DfmlgwfkrDA+zPffe7blH5/lL37Zkb6nc6wuxVRbzV8YzdlZ+5tQQpIMJPb+QAelv9zRCAMwN0q3zuLjBc9VyYoYUG6IBemXKvWB4hez+uszLrzUN8cuszHnJq196g==
Hi Sylvain,
Thanks a lot, that was exactly what I needed!
This should be documented in
https://www.google.fr/search?q=coa&ie=utf-8&oe=utf-8&client=firefox-b-ab&gfe_rd=cr&ei=YWhkWZeHNNTv8AfMyYWwBg
Cheers
Chantal
Le 10/07/2017 à 15:24, Sylvain Boulmé a écrit :
> Hello Chantal,
>
> On your test example, I guess that you only need to
> - save the attached "test_plugin.mllib" in your directory
> - add a line "test_plugin.mllib" in your _CoqProject
>
> On more complex examples, I have been led to store the output of
> "coq_makefile" in a separate "coq.mk" file, and invoke it through calls
> to "$(MAKE) -f coq.mk" in a handwritten Makefile...
>
> Hope this helps,
>
> Sylvain.
>
> Le 10/07/2017 à 14:27, Chantal Keller a écrit :
>> Hi,
>>
>> Using coq_makefile, I do not know how to generate a correct Makefile for
>> a Coq plugin that relies on multiple OCaml files.
>>
>> Attached is a small example: test.ml and test_plugin.ml4 do compile, but
>> when compiling Test.v, coqc complains:
>>
>> error loading shared library: ~/test/test_plugin.cmxs: undefined symbol:
>> camlTest__1
>>
>> I used to update the Makefile by hand but I hope there is a cleaner
>> solution!
>>
>> I am using Coq 8.6 with OCaml 4.02.3, under linux.
>>
>> Thanks
>> Chantal
>>
- [Coq-Club] How to compile plugins with multiple OCaml files?, Chantal Keller, 07/10/2017
- Re: [Coq-Club] How to compile plugins with multiple OCaml files?, Sylvain Boulmé, 07/10/2017
- Re: [Coq-Club] How to compile plugins with multiple OCaml files?, Chantal Keller, 07/11/2017
- Re: [Coq-Club] How to compile plugins with multiple OCaml files?, Sylvain Boulmé, 07/10/2017
Archive powered by MHonArc 2.6.18.