comp.lang.ada
 help / color / mirror / Atom feed
From: George J <ivanov_george@list.ru>
Subject: Re: GNAT, portability between computers (win32)
Date: Thu, 11 Aug 2016 07:50:50 -0700 (PDT)
Date: 2016-08-11T07:50:50-07:00	[thread overview]
Message-ID: <09438387-25a4-4cdf-a89b-dd21e0d76e22@googlegroups.com> (raw)
In-Reply-To: <2f223500-a979-4168-8e72-02d281ef31d3@googlegroups.com>

четверг, 11 августа 2016 г., 17:47:25 UTC+3 пользователь George J написал:
> среда, 10 августа 2016 г., 21:29:17 UTC+3 пользователь gautier...@hotmail.com написал:
> > Le mercredi 10 août 2016 17:30:48 UTC+2, Aurele a écrit :
> > > Hi George. Yes, unlike ObjectAda, Adacore's GNAT compiler does link some of its own DLLs with your the executable.
> > 
> > It would be interesting to see what is triggering this dependency in your case, but in general GNAT does *not* link its own DLLs. I have many Windows applications (both corporate & open-source software) where the .exe is the only file needed to run on a target machine that never saw GNAT, nor its shadow ;-) ...
> > _________________________ 
> > Gautier's Ada programming 
> > http://sf.net/users/gdemont/
> 
> Hi all!Hi Gauter! Im using GNAT2016 and GTK gui in my app. Yesterday i've found out all gtk dlls which are necessary to run my program without problems - 21 dll (from libcairo-2 to zlib1).  So I've decided to link them one by one and check out,whether my .exe can run on the comp which has no gnat and gtk installed files. The first was libcairo-2. (linker =>  llibcairo-2,  binder  =>  -static) That's part of my .gpr :
> ---------------------------
>  package Linker is
>       case Library_Type is
>          when "static" =>
>             case Win32Ada_Build is
>                when "default" =>
>                   for Default_Switches ("ada") use ("-llibcairo-2", "-mwindows");
>                when "relocatable" =>
>                   for Default_Switches ("ada") use ("-g");
>             end case;
>          when "relocatable" =>
>             for Default_Switches ("ada") use ("-g");
>       end case;
>    end Linker;
> 
>    package Binder is
>       case Library_Type is
>          when "static" =>
>             case Win32Ada_Build is
>                when "default" =>
>                   for Default_Switches ("ada") use ("-static");
>                when "relocatable" =>
>             end case;
>          when "relocatable" =>
>       end case;
>    end Binder;
> ------------------------------------
> So when i run my .exe on the other comp it shows me the same error : "The program couldn't be started cause of libcairo-2.dll doesn't exists". Could smb tell me,where I'm wrong?

Oh,excuse me,Gautier, of course!.


  reply	other threads:[~2016-08-11 14:50 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 [this message]
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
replies disabled

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