Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Platforms/qwindows.dll and platforms/qwindows.lib(when build Qt -static) Problem
QtWS25 Last Chance

Platforms/qwindows.dll and platforms/qwindows.lib(when build Qt -static) Problem

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    opengpu
    wrote on last edited by
    #1

    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 ?
    thank you

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alex_malyu
      wrote on last edited by
      #2

      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.

      Regards,
      Alex

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved