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. DLL file version and file name
Qt 6.11 is out! See what's new in the release blog

DLL file version and file name

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 887 Views 4 Watching
  • 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.
  • A Offline
    A Offline
    addebito
    wrote on last edited by
    #1

    I've created my first dll in Qt, everithing works fine but now I'd like to assign the file version, so I wrote in .pro file this :
    VERSION = 1.0.0.0
    Now when I build the DLL the name of file change from mylibrary.dll to mylibrary1.dll.

    If I change the version to:
    VERSION = 2.0.0.0
    ..the compiled file name get the mylibrary2.dll.

    Is it correct ?????
    Why?

    In this whay when I'll change the Major Number I'll have to change the exe to load a differen library....

    QT 5.12.7
    Windows 10

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Usually when a library changes its major version it means there are breaking changes so a rebuild of the application is needed anyway.

      Minor and patch versions are meant to replace current versions without rebuilding your application unless you want to make use of a new API provided by a new minor release.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • Christian EhrlicherC Online
        Christian EhrlicherC Online
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @addebito said in DLL file version and file name:

        Is it correct ?????
        Why?

        Why not? What do you think is wrong?

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        1
        • A Offline
          A Offline
          addebito
          wrote on last edited by
          #4

          Hi @SGaist , @Christian-Ehrlicher ,
          you are right, I never imagined it was so good.
          I thought I had to specify it somewhere... But, thanks for your FAST reply.
          ...I never stop learning.

          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