Qt World Summit: Submit your Presentation

error linking static library

  • I have a project which I have declared as static lib.

    In my main application, I have provided the INCLUDEPATH and LIBS ( path of the debug file).

    I referred to several posts and comments on how to link static lib. But I am unable to figure out where Im going wrong.

    I have included the header file of the library.


    I am getting the following error while calling the library functions:

    Can someone please clarify this? Is something wrong with my .pro declarations maybe incorrect path?

  • Lifetime Qt Champion


    "-L" is to add a search path for libraries for the linker. "-l" is to link a library.

Log in to reply