From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Example Ada calling Gnu Scientific Library (GSL) Date: Mon, 10 Apr 2017 16:44:21 +0100 Organization: A noiseless patient Spider Message-ID: References: <2b035819-e55e-4805-9ff1-a2cec09f13e0@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="733ebcbcb2ddc652667a098546bc9ca3"; logging-data="30628"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gCwl/UuD34zjSqpu/aPUiX4uMFHfdyYA=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) Cancel-Lock: sha1:Io2Bs4RPAmfVXDeR61VEC0/L9v0= sha1:ia7uKU5dq2KdmDQD5y9x7tuarvY= Xref: news.eternal-september.org comp.lang.ada:46562 Date: 2017-04-10T16:44:21+01:00 List-Id: hreba writes: > On 04/09/2017 05:17 PM, Simon Wright wrote: >> hreba writes: >> >>> package Builder is >>> for Default_Switches ("C") use ("-lgsl"); >>> end Builder; >> >> Try >> >> package Linker is >> for Default_Switches ("ada") use ("-lgsl"); >> end Linker; >> > > I put this in all my 3 project files, called gprbuild with the -f > option with all 3 project files - nothing new. > > Is there no example with another thick binding to a library with C > interface (and which is less huge than GtkAda)? Oops, thanks Dmitry: I should have said package Linker is for Linker_Options use ("-lgsl"); end Linker; (in your lowest-level GPR, gsl_raw I think?)