查看完整版本: [-- QT编译报错:Please #define _AFXDLL or do not use /MD[d],请大神指导 --]

QTCN开发网 -> Qt安装与发布 -> QT编译报错:Please #define _AFXDLL or do not use /MD[d],请大神指导 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

zhangzhen062 2019-09-16 15:00

QT编译报错:Please #define _AFXDLL or do not use /MD[d],请大神指导

在编译QT工程时,出现错误提示: C1189: #error:  Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d],请大神指导

XChinux 2019-09-16 16:20
这不是告诉你了么?要么去除/MD编译选项,要么定义_AFXDLL宏。

所以你直接在.pro里加上
DEFINES += _AFXDLL
然后重新qmake/make编译就行了。


查看完整版本: [-- QT编译报错:Please #define _AFXDLL or do not use /MD[d],请大神指导 --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled