社区
界面
帖子详情
MFC编译提示Please use the /MD switch for _AFXDLL builds
mszjk
2011-05-08 05:21:40
RT.
我选的是/MT 或 /MTD
如果改成/MD 或 /MDD,在其他没有VC库的上边是运行不了的.
现在要求:
使用/MT或/MTD编译.
如何设置编译器?
...全文
596
5
打赏
收藏
MFC编译提示Please use the /MD switch for _AFXDLL builds
RT. 我选的是/MT 或 /MTD 如果改成/MD 或 /MDD,在其他没有VC库的上边是运行不了的. 现在要求: 使用/MT或/MTD编译. 如何设置编译器?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
mszjk
2011-05-08
打赏
举报
回复
[Quote=引用 2 楼 wocow3 的回复:]
工程设置→genneral→using MFC in a static library
并且设置CRT为/MT 或 /MTD
[/Quote]
来这http://topic.csdn.net/u/20110508/17/e3759d4a-3583-440a-8300-8b6a327bc98e.html?767098299
mszjk
2011-05-08
打赏
举报
回复
3Q
我擦,给错分了.
Eleven
2011-05-08
打赏
举报
回复
depends工具查看,缺少什么dll,就copy哪个
wocow3
2011-05-08
打赏
举报
回复
工程设置→genneral→using MFC in a static library
并且设置CRT为/MT 或 /MTD
VS2015
编译
输出:fatal error C1189: #error: Please
use
the /
MD
switch
for _
AFX
DLL
build
s
VS2015调试
编译
时输出:fatal error C1189: #error: Please
use
the /
MD
switch
for _
AFX
DLL
build
s 问题截图: 解决方案: 类似这种问题匹配好运行库就可以了 1.解决方案右键打开项目属性>>找到项目目...
1 IntelliSense: #error 指令: Please
use
the /
MD
switch
for _
AFX
DLL
build
s
1 IntelliSense: #error 指令: Please
use
the /
MD
switch
for _
AFX
DLL
build
s 工程(Project)-> 属性(Properties)-> 配置属性(Configuration Properties)-> c/c++-> 代码生成(Code ...
IntelliSense: #error 指令: Please
use
the /
MD
switch
for _
AFX
DLL
build
s
IntelliSense: #error 指令: Please
use
the /
MD
switch
for _
AFX
DLL
build
s c:\program files (x86)\microsoft visual studio 10.0\vc\atl
mfc
\include\
afx
ver_.h 81 最后发现这个问题,竟然不影响使用。那就属...
vs2010
编译
错误:#error 指令: Please
use
the /
MD
switch
for _
AFX
DLL
2 IntelliSense: #error 指令: Please
use
the /
MD
switch
for _
AFX
DLL
build
s d:\program files (x86)\vc\atl
mfc
\include\
afx
ver_.h 81 3 转载自:
VS2019
MFC
编译
错误:#error Please
use
the /
MD
switch
for _
AFX
DLL
build
s
移完
dll
文件之后也没用,查询资料之后发现需要将使用动态链接库修改为静态库
编译
. 好多地方只写了下面两项中的其中一项,结果我这边没用,最后我歪打正着两个一起就解决了. 解决方法: 项目->属性->高级->...
界面
15,979
社区成员
115,896
社区内容
发帖
与我相关
我的任务
界面
VC/MFC 界面
复制链接
扫一扫
分享
社区描述
VC/MFC 界面
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章