Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.4.0
-
None
-
msvc2013
Description
Tested msvc2013. The linker can not find _imp_CommandLineToArgvW@8. It's in shell32.lib. I see qtmain.lib use the function CommandLineToArgvW, and winmain.pro add -lshell32 flag. But qtmain.lib is a static lib, so that flag does nothing i think. I change a line in mkspecs/win32-msvc2013/qmake.conf
QMAKE_LIBS_QT_ENTRY = -lqtmain
to
QMAKE_LIBS_QT_ENTRY = -lqtmain -lshell32
and it works