error MSB8031: Building an MFC project for a non-Unicode character set is deprecated. You must chang

vs2013编译VC++源码,错误:

error 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.

解决方案:

从微软官网下载安装包vc_mbcsmfc.exe,然后装了就OK了。


出现这种情况,我们仔细读一下错误提示:

error MSB8031: Building an MFC project for a non-Unicode character set is deprecated. You must chang

打开上面的网址:

错误    1    error 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. Seehttp://go.microsoft.com/fwlink/p/?LinkId=286820for more information.    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets    376    5    HostMSPaint

下载Visual Studio版本对应的文件 安装即可

error MSB8031: Building an MFC project for a non-Unicode character set is deprecated. You must chang