您的位置:首页 > 编程语言 > Qt开发

Qt编译,imp_CommandLineToArgvW@8问题

2016-02-04 14:57 621 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: