Re: Static linking on Windows
- From: Bruce Sherwood <Bruce_Sherwood ncsu edu>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Static linking on Windows
- Date: Thu, 08 Nov 2007 10:57:39 -0500
In fact, Robert Pearce pointed me to Dependency Walker (I had failed to
ask the right question of Google to find it myself), and it did a great
job of identifying everything. In fact, I passed it a .pyd file and it
happily analyzed it. Thanks to both of you for pointing me to this.
There remains pending for me the fact that using gtkmm instead of
Windows-specific windowing code increases my binary from 4 MB to 40 MB.
It was suggested that one can strip the dll's, but I don't know how to
do that. I installed gtkmm etc. from Windows binary downloads.
Bruce Sherwood
Alan Ott wrote:
Robert Pearce wrote:
On Wed, 7 Nov 2007, Bruce Sherwood <Bruce_Sherwood ncsu edu> wrote :
Is there a more intelligent way to identify which dll's I need?
There are tools available to analyse the DLL set used by a Windows
application. I can't remember which one I used but I suspect a google
would find it (I think I found a link on the InnoSetup web site,
actually).
The old school way to do it was to use Dependency Walker (
http://www.dependencywalker.com/ ), and that will work well for stuff
built with VC6, 7, 7.1, and GCC. It will always show an error (at least
on stuff that I build) for stuff built with VC8, and it will silently
ignore some problems on VC8 stuff as well. YMMV. Note that Dependency
Walker will only tell you stuff that is required for your program to
_start_. Like Murray said earler, Gtk loads some DLLs (plugins) at
runtime, so it will not show those.
I am not aware of a newer or better solution for this (and I've spent a
fair amount of time fighting with VC8 stuff linked dynamically with the
MS C libraries). If someone has a better idea, feel free to correct me.
Alan.
------------------------------------------------------------------------
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]