标题:QT编译报错:Please #define _AFXDLL or do not use /MD[d],请大神指导
作者:zhangzhen062
日期:2019-09-16 15:00
内容:
在编译QT工程时,出现错误提示: C1189: #error:Building MFC application with /MD (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD,请大神指导
#1 [XChinux 09-16 16:20]
这不是告诉你了么?要么去除/MD编译选项,要么定义_AFXDLL宏。
所以你直接在.pro里加上
DEFINES += _AFXDLL
然后重新qmake/make编译就行了。