[Qt-interest] qt static library link

OS Prog osprog at gmail.com
Wed Jun 10 11:18:42 CEST 2009


Hello,

I need to add a library (z) to link.
When I add it manualy in the Makefile:

LIBS          =  -lQtGui -lQtNetwork -lQtCore -lpthread -lz

it works, but when I add it in a .pro file
LIBS += -lz
when the Makefile is generated, the qmake puts it before Qt libraries and it
fail to link
LIBS          =  -lz -lQtGui -lQtNetwork -lQtCore -lpthread

Is there a way to tell the qmake to put it at the end of the line (from .pro
file)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090610/3150b137/attachment.html 


More information about the Qt-interest-old mailing list