From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: How to link to ada-util
Date: Fri, 1 Nov 2019 18:06:04 +0100
Date: 2019-11-01T18:06:04+01:00 [thread overview]
Message-ID: <qpholr$bov$1@gioia.aioe.org> (raw)
In-Reply-To: ce72045d-fe1b-4d8b-ae34-b9cb44c4c054@googlegroups.com
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
next prev parent reply other threads:[~2019-11-01 17:06 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
2019-11-01 17:06 ` Dmitry A. Kazakov [this message]
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