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!feeder.eternal-september.org!aioe.org!.POSTED.3d73Ybk3C5U4I2t8lv+lAQ.user.gioia.aioe.org!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: How to link to ada-util Date: Fri, 1 Nov 2019 18:06:04 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <23e06767-a486-434b-9ae0-4b3934a5e18b@googlegroups.com> <729e75f4-f435-4728-bbbb-fefe8d402164@googlegroups.com> NNTP-Posting-Host: 3d73Ybk3C5U4I2t8lv+lAQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader01.eternal-september.org comp.lang.ada:57425 Date: 2019-11-01T18:06:04+01:00 List-Id: On 2019-11-01 16:25, Alain De Vos wrote: > On Friday, November 1, 2019 at 10:36:54 AM UTC+1, joak...@kth.se wrote: >> Den torsdag 31 oktober 2019 kl. 18:53:24 UTC+1 skrev Alain De Vos: >>> The ada-util package has many interesting features. >>> https://github.com/stcarrez/ada-util >>> How I use it. >>> I copy my application to the samples directory and run the gnatmake -Psamples which uses samples.gpr. >>> I have not find a better way to link to ada-util. >>> Is there a better easier way ? >>> >>> When I try a simple gnat make test.adb on a file containing : >>> with Util.Streams.Pipes; >>> I get the error "util.ads" not found. >>> I think I need to tell the systeem where to look for all necessary .ads files, which are in a tree ... >> >> Ada-Util has dependencies upon other github repositories and it is part of the AWA framework. To be able to use Ada-Util I recommend going to >> https://github.com/stcarrez/ada-awa >> and follow the instructions there: >> git clone git@github.com:stcarrez/ada-awa.git >> cd ada-awa >> git submodule init >> git submodule update >> >> Best regards, >> Joakim > > Here is how i tried to compile and bind and this worked on my program : > gcc -c -I/usr/local/include/utilada_core.static -I/usr/local/include/utilada_sys.static -I/usr/local/include/utilada_base.static mystuff.adb > gnatbind -I/usr/local/lib/utilada_core.static -I/usr/local/lib/utilada_sys.static -I/usr/local/lib/utilada_base.static mystuff > But I failed gnatlink to provide the good parameters.... so I'm stuck. > In fact I want to know what I'm doing. > And don't need to link to every library available. Always use project files, never makefiles. If the library provider does not give you a project file, ask him to do it. If he refuses to, write your own project file. You can do it for system and non-Ada libraries too. You must learn to do this if you want to use GNAT. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de