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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a05:620a:13bc:: with SMTP id m28mr3718671qki.258.1572621949435; Fri, 01 Nov 2019 08:25:49 -0700 (PDT) X-Received: by 2002:a05:6830:236e:: with SMTP id r14mr8539666oth.329.1572621949175; Fri, 01 Nov 2019 08:25:49 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!j16no49567qtl.0!news-out.google.com!g53ni219qtg.0!nntp.google.com!j16no49560qtl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 1 Nov 2019 08:25:48 -0700 (PDT) In-Reply-To: <729e75f4-f435-4728-bbbb-fefe8d402164@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:a03f:e3e9:4d00:1260:4bff:fe89:deb2; posting-account=kTRirAoAAACnF_wtAOSamxYBSVvmJuCa NNTP-Posting-Host: 2a02:a03f:e3e9:4d00:1260:4bff:fe89:deb2 References: <23e06767-a486-434b-9ae0-4b3934a5e18b@googlegroups.com> <729e75f4-f435-4728-bbbb-fefe8d402164@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: How to link to ada-util From: Alain De Vos Injection-Date: Fri, 01 Nov 2019 15:25:49 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:57423 Date: 2019-11-01T08:25:48-07:00 List-Id: 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.