Is this considered as a static linking

  • in the .pro file

    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:

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

  • Moderators

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

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

  • Moderators

    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.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.