[Development] [qmake] Why does it not allow a version of 0 for a library in findLibraries

Darin Broady dbroady1 at yahoo.com
Thu Dec 18 15:55:45 CET 2014


On Windows, I'm attempting to do the following:   LIBS += -lsomeLibwhere someLib exists in the /LIBPATH as someLib0.dll and someLib0.lib.  When I run qmake, it never finds someLib0.lib and always puts someLib.lib in the generated Makefile.  If the library is named someLib1.dll & someLib1.lib, then it will find it & add it appropriately to the generated Makefile.
I believe that the problem lies in generators/win32/winmakefile.cpp:findLibraries where it calls findHighestVersion.  findHighestVersion is returning 0, but findLibraries is not accepting this as a valid value.  In one spot (-lsomeLib branch), it specifically only allows positive values.  In the second spot (someLib.lib in LIBS), it specifically substitutes the empty string for zero.
My question is:  why is zero not allowed as a valid version of a library?
If it decided that allowing a zero version is allowed, I will submit the patch to Gerrit to change this.

Darin Broady
dbroady1 at yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20141218/473ee415/attachment.html>


More information about the Development mailing list