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

修改mkspecs/win32-msvc2013(对应的vs版本)/qmake.conf
找到
QMAKE_LIBS_QT_ENTRY = -lqtmain
修改为
QMAKE_LIBS_QT_ENTRY = -lqtmain -lshell32

参考:https://bugreports.qt.io/browse/QTBUG-44862

相关文章:

  • 2021-10-15
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-10
  • 2021-12-28
  • 2021-05-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案