comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: interfacing with c object link gnatmake link problem
Date: Mon, 11 Nov 2019 06:17:46 -0800 (PST)
Date: 2019-11-11T06:17:46-08:00	[thread overview]
Message-ID: <03ddacab-f539-4e78-bacb-bd10e1da1881@googlegroups.com> (raw)
In-Reply-To: <h2rht3FtofuU1@mid.individual.net>

On Sunday, November 10, 2019 at 3:39:34 PM UTC-7, Niklas Holsti wrote:
> 
> My habit is to add
> 
>     pragma Linker_Options ("mylibrary.o");
> 
> to the Ada source file that imports the C functions. Then there is no 
> need to add options to the gnatmake command.

That is very good advice.
And since it's language-defined it should be pretty portable across compilers.


  reply	other threads:[~2019-11-11 14:17 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
2019-11-10 22:39   ` Niklas Holsti
2019-11-11 14:17     ` Shark8 [this message]
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