Platforms/qwindows.dll and platforms/qwindows.lib(when build Qt -static) Problem
opengpu last edited by
i know deploy Qt app on windows should include platforms/qwindows.dll
what should i do when i compile Qt Static, as i see in the lib dir, there is platforms/qwindows.lib, does the Qt app have to Link to this lib ?
alex_malyu last edited by
lib file is either a static lib or description of dll exports for linking purposes.
So no matter what, you need to link against lib (with a single exception when you want resolve calls to exported by dll functions at runtime yourself).
The difference between static and dynamic linking is that if you linked to static library you do not need to provide dll at runtime, cause it was done while linking.