Using a static library in Qt Creator

后端 未结 5 947
野趣味
野趣味 2020-12-04 12:35

I\'m having a hell of a time finding documentation which clearly explains how to use a static library in Qt Creator.

I\'ve created and compiled my static library usi

5条回答
  •  不思量自难忘°
    2020-12-04 13:14

    LIBS += -L[path to lib] -l[name of lib]
    

    Note! that filename of lib: lib[nameOfLib].a and you have to pass only original part -l[nameOfLib]

提交回复
热议问题