comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: GNAT, portability between computers (win32)
Date: Thu, 11 Aug 2016 19:23:21 +0200
Date: 2016-08-11T19:23:21+02:00	[thread overview]
Message-ID: <noicai$8ge$1@gioia.aioe.org> (raw)
In-Reply-To: c3df3c90-5461-460b-875f-76bc45c2e640@googlegroups.com

On 2016-08-11 18:41, Aurele wrote:
>> A DLL that includes GNAT run-time and thus does not depend on GNAT DLLs
>> is called stand-alone. You must have
>>
>>    for Library_Standalone use "encapsulated";
>>
>> in your library project.
>>
> That did the trick.  Thanks Dmitry !!!

Don't rush. It might freeze upon loading. If it does, which is most 
likely the case when the library does anything beyond trivial 
computations. Then

1. add for Library_Auto_Init use "false";

2. make sure that gnatbind is invoked without -a switch

3. call <libname>init before first use of the library. E.g. if the 
library name is foo then

procedure Init_My_Library;
pragma Import ("C", Init_My_Library, "fooinit");

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


  reply	other threads:[~2016-08-11 17:23 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-10 14:17 GNAT, portability between computers (win32) George J
2016-08-10 14:23 ` George J
2016-08-10 14:43   ` Dmitry A. Kazakov
2016-08-10 14:52     ` George J
2016-08-10 16:07       ` Dmitry A. Kazakov
2016-08-10 15:30 ` Aurele
2016-08-10 18:29   ` gautier_niouzes
2016-08-10 20:44     ` Aurele
2016-08-11  5:08       ` gautier_niouzes
2016-08-11 14:47     ` George J
2016-08-11 14:50       ` George J
2016-08-11 16:03         ` Dmitry A. Kazakov
2016-08-10 16:55 ` George J
2016-08-10 17:16 ` George J
2016-08-11  9:53 ` Aurele
2016-08-11 10:11   ` Pascal Obry
2016-08-11 10:17     ` Aurele
2016-08-11 13:40       ` Pascal Obry
2016-08-11 14:53         ` Aurele
2016-08-11 16:11           ` Dmitry A. Kazakov
2016-08-11 16:41             ` Aurele
2016-08-11 17:23               ` Dmitry A. Kazakov [this message]
2016-08-11 18:12                 ` Aurele
2016-08-11 20:53                   ` Dmitry A. Kazakov
2016-08-11 19:42                 ` Aurele
replies disabled

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