Library order
Hi.
I’ve successfully build Qt statically but now I have link problems. I am trying to link -lXext -lz with:
LIBS += -lXext -lz
But the libraries are being passed as parameters before the Qt libraries:
g++ -static-libgcc -Wl,-rpath,/usr/local/lib -o fr main.o moc_main.o -L/usr/local//lib -lXext -lz -lpthread -lQt3Support -lQtGui -lQtCore
And I get undefined references:
/usr/local//lib/libQtCore.a(qbytearray.o):qbytearray.cpp:(.text+0×38c0): undefined reference to `_compress2’
How do I tell qmake to pass “-lXext -lz” after “-lQt3Support -lQtGui -lQtCore”?
1 reply
I found a solution using brute force:
http://bugreports.qt.nokia.com/browse/QTBUG-20342?focusedCommentId=158731#comment-158731
You must log in to post a reply. Not a member yet? Register here!
