From: Aurele <aurele.vitali@gmail.com>
Subject: Re: GNAT, portability between computers (win32)
Date: Thu, 11 Aug 2016 12:42:34 -0700 (PDT)
Date: 2016-08-11T12:42:34-07:00 [thread overview]
Message-ID: <71d7c4c9-1d6a-4232-aba5-32639c7d2250@googlegroups.com> (raw)
In-Reply-To: <noicai$8ge$1@gioia.aioe.org>
> 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");
Some more info on how I finally got the DLL working.
1. I used: for Library_Standalone use "encapsulated";
2. I used: Library_Auto_Init use "true";
3. Must NOT use the "-shared" binder switch on either the DLL or the calling application. Using the -shared switch cause the DLL/app to freeze.
Thanks for your input Dmitry o7
Aurele
prev parent reply other threads:[~2016-08-11 19:42 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
2016-08-11 18:12 ` Aurele
2016-08-11 20:53 ` Dmitry A. Kazakov
2016-08-11 19:42 ` Aurele [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox