comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: interfacing with c object link gnatmake link problem
Date: Sun, 10 Nov 2019 21:15:48 +0000
Date: 2019-11-10T21:15:48+00:00	[thread overview]
Message-ID: <lyy2wncu0r.fsf@pushface.org> (raw)
In-Reply-To: 7ff91b06-4667-4fa4-8abf-6d172b033557@googlegroups.com

Alain De Vos <devosalain71@gmail.com> writes:

> I try to interface to a c library.
> The docs,
> https://learn.adacore.com/courses/intro-to-ada/chapters/interfacing_with_c.html
>
> How to inform gnatmake that it should link to mylibrary.o ?
>
> I solve it currently by calling gnatlink explicitly after running gnatmake ,
> but maybe there is a nicer solution.
> % gnatlink mytest.ali ./maaltwee.o     

% gnatmake mytest.adb -largs maaltwee.o

(-largs is followed by arguments to be passed to the linker)


  reply	other threads:[~2019-11-10 21:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-10 21:04 interfacing with c object link gnatmake link problem Alain De Vos
2019-11-10 21:15 ` Simon Wright [this message]
2019-11-10 22:39   ` Niklas Holsti
2019-11-11 14:17     ` Shark8
2019-11-11 15:32     ` Simon Wright
replies disabled

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