Re: Static linking on Windows



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.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]