Duplicate library entries in .pro/.pri file
-
I need to enter the library in the makefile twice to resolve some linking issue. xx library requires an entry in the makefile to be added twice before and after some yy dependency library.
Problem with QT pro file parsing mechanism to generate the makefile is, QT suppresses the duplicate entry and only single entry will be added to Makefile.
Looking some inputs to avoid this and let QT add the library twice in the generated makefile. -
welcome to devnet
[quote author="Texan" date="1370302149"]I need to enter the library in the makefile twice to resolve some linking issue. xx library requires an entry in the makefile to be added twice before and after some yy dependency library.
Problem with QT pro file parsing mechanism to generate the makefile is, QT suppresses the duplicate entry and only single entry will be added to Makefile.[/quote]Did you use following entry in your .pro or .pri?
@
LIBS +=
-lmyLib1
-lmyLib2
-lmyLib1
@That does work in my case on win7 with qmake of version 4.8.4.