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
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
相关文章推荐
- 使用 rqt_console 和 roslaunch---8
- QT的foreach使用
- Qt刷新机制的一些总结
- QT工程中的文件介绍(1)----*.pro文件
- QT自绘任务表,很不错的说~
- 开启QtCreator的代码自动补全功能
- Qt 数据库之 QSqlRelationalTableModel
- 在Qt中使用 Qt Chart 5.7.0
- Qt脚本访问实时库
- Pyqt4学习笔记-简单案例
- VS2013+QT5.5配置小结
- QT 5 初学2 视窗设计(续)
- Qt 界面使用自己定义控件 "提升为"
- Qt Script文档翻译(一)
- QT小技巧学习记录
- Qt 数据库(一)
- QT 5 初学2 QTreeView范例
- QT 5 初学1 多窗口切分-续
- Qt Charts的简单安装与使用
- Qt(13):Qt的坐标体系