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.66.14.6 with SMTP id l6mr7219741pac.11.1470926843961; Thu, 11 Aug 2016 07:47:23 -0700 (PDT) X-Received: by 10.157.45.97 with SMTP id v88mr236508ota.4.1470926843908; Thu, 11 Aug 2016 07:47:23 -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!f6no9154279ith.0!news-out.google.com!d130ni31897ith.0!nntp.google.com!f6no9154268ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 11 Aug 2016 07:47:23 -0700 (PDT) In-Reply-To: <99706799-d06d-4a4e-874a-1c776438d8e3@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> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2f223500-a979-4168-8e72-02d281ef31d3@googlegroups.com> Subject: Re: GNAT, portability between computers (win32) From: George J Injection-Date: Thu, 11 Aug 2016 14:47:23 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:31388 Date: 2016-08-11T07:47:23-07:00 List-Id: =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 som= e of its own DLLs with your the executable. >=20 > 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 Window= s applications (both corporate & open-source software) where the .exe is th= e only file needed to run on a target machine that never saw GNAT, nor its = shadow ;-) ... > _________________________=20 > Gautier's Ada programming=20 > http://sf.net/users/gdemont/ Hi all!Hi Gauter! Im using GNAT2016 and GTK gui in my app. Yesterday i've f= ound out all gtk dlls which are necessary to run my program without problem= s - 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 an= d 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", "-mwind= ows"); when "relocatable" =3D> for Default_Switches ("ada") use ("-g"); end case; when "relocatable" =3D> for Default_Switches ("ada") use ("-g"); end case; end Linker; 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 p= rogram couldn't be started cause of libcairo-2.dll doesn't exists". Could s= mb tell me,where I'm wrong?