[vtkusers] Why do Qt examples ignore statically linked Qt*.lib(s) and instead depend on Qt*.dll(s)?

Clinton Stimpson clinton at elemtech.com
Mon May 10 13:07:56 EDT 2010


On Sunday, May 09, 2010 02:49:04 pm Constantine Z wrote:
> Hello ALL.
> 
> I've built VTK (with examples) 5.6.0 n VS 2008 with static linking.
> Latest CMake, latest Qt. Linker properties page lists Qt*.lib(s) for
> static linking.
> 
> However, dependency tracker shows the executables depend on Qt*.dll(s).
> When I run the executables (naturally) they attempt to load Qt*.dll(s).
> It works fine when Qt*.dll(s) directory is in system path.
> 
> Can someone please clarify why do we need Qt*.dll(s) when an executable
> is built with static Qt*.lib(s)?
> 

Are the .lib files you have actually "import" libraries for dlls and not static 
libraries (both have the same .lib filename extension)?

Clint



More information about the vtkusers mailing list