#关于VS2013中遇到的问题总结

本文解决MFC项目编译中遇到的两个典型错误:一是针对非Unicode字符集的弃用警告,解决方法为安装vc_mbcsmfc库;二是找不到v140构建工具的错误提示,解决途径为更改项目属性中的平台工具集。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  • 错误1

错误1error MSB8031: Building an MFC project for a non-Unicode character set is deprecated. You must change the project property to Unicode or download an additional library. See http://go.microsoft.com/fwlink/p/?LinkId=286820 for more information.C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets3765BridgeDetection

解决办法:安装vc_mbcsmfc即可—>下载地址

下载后点击该程序,进行安装即可。

  • 错误2
    C:\ProgramFiles(x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(64,5): error MSB8020: The build tools for v140 (Platform Toolset = ‘v140’) cannot be found. To build using the v140 build tools, please install v140 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting “Upgrade Solution…”.

解决办法:打开项目属性,在平台工具集中修改成已有的平台。

这里写图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值