comp.lang.ada
 help / color / mirror / Atom feed
From: Alain De Vos <devosalain71@gmail.com>
Subject: Re: How to link to ada-util
Date: Fri, 1 Nov 2019 08:25:48 -0700 (PDT)
Date: 2019-11-01T08:25:48-07:00	[thread overview]
Message-ID: <ce72045d-fe1b-4d8b-ae34-b9cb44c4c054@googlegroups.com> (raw)
In-Reply-To: <729e75f4-f435-4728-bbbb-fefe8d402164@googlegroups.com>

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.

  reply	other threads:[~2019-11-01 15:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-31 17:53 How to link to ada-util Alain De Vos
2019-11-01  9:36 ` joakimds
2019-11-01 15:25   ` Alain De Vos [this message]
2019-11-01 17:06     ` Dmitry A. Kazakov
2019-11-01 18:40       ` Shark8
2019-11-03 17:05 ` Alain De Vos
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox