MBCS Error building MFC C++ project with Visual Studio(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 FilesMSBuildMicrosoft.Cppv4.0v120Microsoft.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.
- 可在此处 下载
- 可提供有关此更改的更多信息这里
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++ 项目时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:MBCS 使用 Visual Studio 构建 MFC C++ 项目时出错


- 一起使用 MPI 和 OpenCV 时出现分段错误 2022-01-01
- 近似搜索的工作原理 2021-01-01
- Stroustrup 的 Simple_window.h 2022-01-01
- 使用/clr 时出现 LNK2022 错误 2022-01-01
- C++ 协变模板 2021-01-01
- 如何对自定义类的向量使用std::find()? 2022-11-07
- 从python回调到c++的选项 2022-11-16
- 静态初始化顺序失败 2022-01-01
- STL 中有 dereference_iterator 吗? 2022-01-01
- 与 int by int 相比,为什么执行 float by float 矩阵乘法更快? 2021-01-01