From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: GNAT, portability between computers (win32)
Date: Thu, 11 Aug 2016 18:03:25 +0200
Date: 2016-08-11T18:03:25+02:00 [thread overview]
Message-ID: <noi7kl$fa$1@gioia.aioe.org> (raw)
In-Reply-To: 09438387-25a4-4cdf-a89b-dd21e0d76e22@googlegroups.com
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
next prev parent reply other threads:[~2016-08-11 16:03 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
2016-08-11 16:03 ` Dmitry A. Kazakov [this message]
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