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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,10706aebb8b707de X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.213.68 with SMTP id nq4mr3289377pbc.2.1330111854891; Fri, 24 Feb 2012 11:30:54 -0800 (PST) Path: h9ni4787pbe.0!nntp.google.com!news1.google.com!news.glorb.com!gegeweb.org!news.chainon-marquant.org!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed4-a.proxad.net!nnrp14-2.free.fr!not-for-mail Date: Fri, 24 Feb 2012 20:31:00 +0100 From: Francois54 User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: gnat executables for Gtk Ada References: In-Reply-To: Message-ID: <4f47e56e$0$32542$426a34cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 24 Feb 2012 20:30:54 MET NNTP-Posting-Host: 109.190.25.159 X-Trace: 1330111854 news-4.free.fr 32542 109.190.25.159:56758 X-Complaints-To: abuse@proxad.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Date: 2012-02-24T20:30:54+01:00 List-Id: Le 22/02/2012 16:31, tonyg a �crit : > Whenever I compile some code for a different PC , it asks me for the > runtime libraries for gtk and some others. Is there a way I can link > my executable so the functions used in these libraries are included in > my executable ? I assume you are using GtkAda on Windows. GTKAda requires several DLL for the C libraries GLib, Pango, Cairo, ATK, etc .. found in directory GTKADA\bin ( libgtk-win32-2.0-0.dll, libgdk-win32-2.0-0.dll ..) You have to ship these DLLs with the application (about 10 Mega) The switch in scenario (static, relocatable) applies only to the Ada part i.e. the Gnat Run-Time and GTKAda. these DLLs are libgtkada-2.18.dll and libgnat-2011.dll If you build with static you have the Ada run-time and GTKADa in the executable (which explains the size of at least 1 Mo) With relocatable you must ship also the corresponding DLLs for Ada.