From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.157.34.232 with SMTP id y95mr2686940ota.29.1470927050249; Thu, 11 Aug 2016 07:50:50 -0700 (PDT) X-Received: by 10.157.48.52 with SMTP id d49mr233162otc.17.1470927050213; Thu, 11 Aug 2016 07:50:50 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!f6no9135092ith.0!news-out.google.com!d130ni31897ith.0!nntp.google.com!f6no9154877ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 11 Aug 2016 07:50:50 -0700 (PDT) In-Reply-To: <2f223500-a979-4168-8e72-02d281ef31d3@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=109.252.108.68; posting-account=YB4WOgoAAABLG9D7qoJiPBc6EJSzsPDF NNTP-Posting-Host: 109.252.108.68 References: <90233803-e8cb-4461-a093-f705409dc83f@googlegroups.com> <99706799-d06d-4a4e-874a-1c776438d8e3@googlegroups.com> <2f223500-a979-4168-8e72-02d281ef31d3@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <09438387-25a4-4cdf-a89b-dd21e0d76e22@googlegroups.com> Subject: Re: GNAT, portability between computers (win32) From: George J Injection-Date: Thu, 11 Aug 2016 14:50:50 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:31389 Date: 2016-08-11T07:50:50-07:00 List-Id: =D1=87=D0=B5=D1=82=D0=B2=D0=B5=D1=80=D0=B3, 11 =D0=B0=D0=B2=D0=B3=D1=83=D1= =81=D1=82=D0=B0 2016 =D0=B3., 17:47:25 UTC+3 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7= =D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C George J =D0=BD=D0=B0=D0=BF=D0= =B8=D1=81=D0=B0=D0=BB: > =D1=81=D1=80=D0=B5=D0=B4=D0=B0, 10 =D0=B0=D0=B2=D0=B3=D1=83=D1=81=D1=82= =D0=B0 2016 =D0=B3., 21:29:17 UTC+3 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0= =B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C gautier...@hotmail.com =D0=BD=D0=B0=D0=BF= =D0=B8=D1=81=D0=B0=D0=BB: > > Le mercredi 10 ao=C3=BBt 2016 17:30:48 UTC+2, Aurele a =C3=A9crit=C2=A0= : > > > Hi George. Yes, unlike ObjectAda, Adacore's GNAT compiler does link s= ome of its own DLLs with your the executable. > >=20 > > It would be interesting to see what is triggering this dependency in yo= ur case, but in general GNAT does *not* link its own DLLs. I have many Wind= ows 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 it= s shadow ;-) ... > > _________________________=20 > > Gautier's Ada programming=20 > > http://sf.net/users/gdemont/ >=20 > 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 probl= ems - 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 =3D> llibcairo-= 2, binder =3D> -static) That's part of my .gpr : > --------------------------- > package Linker is > case Library_Type is > when "static" =3D> > case Win32Ada_Build is > when "default" =3D> > for Default_Switches ("ada") use ("-llibcairo-2", "-mwi= ndows"); > when "relocatable" =3D> > for Default_Switches ("ada") use ("-g"); > end case; > when "relocatable" =3D> > for Default_Switches ("ada") use ("-g"); > end case; > end Linker; >=20 > package Binder is > case Library_Type is > when "static" =3D> > case Win32Ada_Build is > when "default" =3D> > for Default_Switches ("ada") use ("-static"); > when "relocatable" =3D> > end case; > when "relocatable" =3D> > 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!.