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. QT dll names
QtWS25 Last Chance

QT dll names

Scheduled Pinned Locked Moved Solved General and Desktop
dlldebugreleaselib
5 Posts 2 Posters 1.1k 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.
  • N Offline
    N Offline
    normvcr
    wrote on 17 Apr 2020, 01:49 last edited by
    #1

    The QT dlls come in pairs: NAME.dll and NAMEd.dll , for the release and debug versions. However, on my link line, I only ever mention NAME.lib . How does the linker arrive at NAMEd.dll for the dynamic link, in the case of a debug build?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 17 Apr 2020, 05:25 last edited by
      #2

      qmake handles this behind the scenes when you call module include like QT += gui.

      (Z(:^

      N 1 Reply Last reply 17 Apr 2020, 06:19
      0
      • S sierdzio
        17 Apr 2020, 05:25

        qmake handles this behind the scenes when you call module include like QT += gui.

        N Offline
        N Offline
        normvcr
        wrote on 17 Apr 2020, 06:19 last edited by
        #3

        @sierdzio I don't use qmake, just regular make, and I can see the link command line has only NAME.lib .

        S 1 Reply Last reply 17 Apr 2020, 06:25
        0
        • N normvcr
          17 Apr 2020, 06:19

          @sierdzio I don't use qmake, just regular make, and I can see the link command line has only NAME.lib .

          S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 17 Apr 2020, 06:25 last edited by
          #4

          @normvcr said in QT dll names:

          @sierdzio I don't use qmake, just regular make, and I can see the link command line has only NAME.lib .

          oh, then it means I was wrong. Interesting! Maybe the linker is clever enough to handle this case? Or maybe you are building debug (your app) but linking release Qt?

          (Z(:^

          N 1 Reply Last reply 17 Apr 2020, 06:40
          0
          • S sierdzio
            17 Apr 2020, 06:25

            @normvcr said in QT dll names:

            @sierdzio I don't use qmake, just regular make, and I can see the link command line has only NAME.lib .

            oh, then it means I was wrong. Interesting! Maybe the linker is clever enough to handle this case? Or maybe you are building debug (your app) but linking release Qt?

            N Offline
            N Offline
            normvcr
            wrote on 17 Apr 2020, 06:40 last edited by
            #5

            @sierdzio I think you're second option is correct. I did

            dumpbin /dependents
            

            on both the debug and release versions of my util, and they have the same release QT dlls. I guess I never had to step into the QT code :-) . Usually, I get link errors when mixing debug with release, stemming from different array instrumentations. Sounds like QT was careful about this, to allow the mixing of debug with release -- unix-like.

            1 Reply Last reply
            0

            2/5

            17 Apr 2020, 05:25

            • Login

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