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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: GNAT, portability between computers (win32) Date: Thu, 11 Aug 2016 18:03:25 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <90233803-e8cb-4461-a093-f705409dc83f@googlegroups.com> <99706799-d06d-4a4e-874a-1c776438d8e3@googlegroups.com> <2f223500-a979-4168-8e72-02d281ef31d3@googlegroups.com> <09438387-25a4-4cdf-a89b-dd21e0d76e22@googlegroups.com> NNTP-Posting-Host: xelDFTENDI+dlkJFd2Ot2w.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:31391 Date: 2016-08-11T18:03:25+02:00 List-Id: On 2016-08-11 16:50, George J wrote: >> 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? To link statically you must do to static libraries. A static Cairo library will have name like libcairo-2.a. The switch -static influences the application being built not the libraries it references. E.g. KERNEL32.dll will be linked as a DLL, there is no static library. Same goes for GTK. There are no static GTK libraries under Windows like there is no KERNEL32 static library. Unless you manage to build static GTK libraries from sources yourself. But that would be pretty much pointless exercise anyway. GTK needs lots of non-executable files to start. It will crash and/or spit a pile of messages if you don't have these files, even if all libraries are there. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de