ATL不支持visual studio 2015中的编译错误 [英] ATL doesn't support compilation error in visual studio 2015

查看:191
本文介绍了ATL不支持visual studio 2015中的编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 Visual Studio 2010 Service Pack - 1    Visual Studio 2015 。我在项目中遇到以下错误 

I have installed Visual Studio 2010 with Service pack - 1 and Visual Studio 2015. I was facing the following error in my project, 

错误C2338:CVarTypeInfo< ; char>无法使用/ J或_CHAR_UNSIGNED标志启用

对于以上问题我安装了修补程序  VS10SP1-KB2545588-x64 .exe 

截至目前,上述错误已清除但现在我在编译时遇到以下错误2015年Visual Studio项目,  

As of now the above mentioned error got cleared but now I am facing the following error while compiling my project in visual studio 2015, 

错误  C1189  #error:  ATL不支持使用/ J进行编译或启用_CHAR_UNSIGNED标记 

Error C1189 #error:  ATL doesn't support compilation with /J or _CHAR_UNSIGNED flag enabled 

C: \Program Files(x86)\ Microsoft Visual Studio 14.0\VC\atlmfc\include\atldef.h

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\atldef.h

你能帮我解决这个问题吗?

Can you help me to resolve this?

提前致谢。

- Shalini

-Shalini

推荐答案

如果需要/ J,请确保符号 _ATL_ALLOW_CHAR_UNSIGNED 在"项目属性"的"预处理器定义"字段中定义。否则,如果/ J选项出现在"其他选项"中,请将其删除( https://msdn.microsoft.com/en -us /库/ 0d294k5z.aspx )。
虽然根据文档不建议使用/ J.

If /J is required, then make sure that the symbol _ATL_ALLOW_CHAR_UNSIGNED is defined in the Preprocessor Definitions field of Project Properties. Otherwise remove the /J option if it appears in Additional Options (https://msdn.microsoft.com/en-us/library/0d294k5z.aspx). Though using /J is not recommended according to Documentation.


这篇关于ATL不支持visual studio 2015中的编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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