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. Is this considered as a static linking
Forum Updated to NodeBB v4.3 + New Features

Is this considered as a static linking

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 829 Views 1 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.
  • K Offline
    K Offline
    karim24
    wrote on last edited by
    #1

    in the .pro file
    @
    LIBS+="d:/qwt-6.1.0-rc2/lib/qwt.dll"
    LIBS+="d:/qwt-6.1.0-rc2/lib/qwtd.dll"
    INCLUDEPATH+="d:/qwt-6.1.0-rc2/include/"@

    in the .cpp and .h files i included the
    @#include <qwt_plot.h>
    #include <qwt_plot_curve.h>@

    in the debug and release files i included:
    qwtd.dll
    qwt.dll

    and if it is a static linkung how do i make it dynamic

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      DLL = Dynamic Link Library
      so no its not meant to link statically

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • K Offline
        K Offline
        karim24
        wrote on last edited by
        #3

        thanks a lot,
        now i get it
        so if i included .a instead of .DLL it becomes a static, right?

        1 Reply Last reply
        0
        • raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          no, actually you have to include the .a file in both cases instead of the DLL. The .a file contains the necessary info for the compiler if it's built for static or dynamic linkage.
          But you already also had a DLL file so you have a lib linked dynamically.

          Also note that the file extension is depending on the compiler and the platform you are building with. I assumed you are using the mingw compiler on windows.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          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