MBCS使用Visual Studio构建MFC C ++项目时出错 [英] MBCS Error building MFC C++ project with Visual Studio

查看:120
本文介绍了MBCS使用Visual Studio构建MFC C ++项目时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio打开了现有的MFC项目,并且在构建时收到以下错误消息:

I opened my existing MFC project using Visual Studio and when I build I get the following error message:

Error 1 error MSB8031: Use of MBCS encoding in MFC projects require an additional library to be downloaded and installed. Please see http://go.microsoft.com/fwlink/?LinkId=286820 for more information. C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\v120\Microsoft.CppBuild.targets

这是怎么回事?

推荐答案

此错误消息是由于缺少MBCS MFC软件包引起的.从Visual Studio 2013开始,MFC库的MBCS部分已从Visual Studio产品中分解为自己的单独下载.安装此软件包并重新构建应该可以解决该问题.

This error message is due to the missing MBCS MFC package. Starting with Visual Studio 2013, MBCS portion of the MFC library has been broken out of the Visual Studio product into its own separate download. Installing this package and rebuilding should fix the problem.

  • 可以在此处
  • 下载该文件
  • 有关此更改的更多信息,请参见
  • The download is available here
  • More information about this change is available here

Visual Studio 2015更新

从Visual Studio 2015开始,整个MFC C ++库(包括MBCS件)是可选的安装组件.在安装VS2015时,如果选择C ++和MFC,还将获得MBCS库.

Starting with Visual Studio 2015, the entire MFC C++ library (including the MBCS pieces) is an optional install component. While installing VS2015, if you select C++ and MFC, you will also get the MBCS library.

这篇关于MBCS使用Visual Studio构建MFC C ++项目时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆