/Zc:wchar_t- 中的减号是什么意思?
Recently I had some linking issues caused by the presence (or absence) of this flag.
/Zc:wchar_t-
I've read the docs, but they don't mention the trailing minus. But every discussion of it seems to include it. What does it mean?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
/Zc:wchar_t-
与/Zc:wchar_t
的作用相反:它导致wchar_t
被视为与相同的类型>unsigned Short
,为了与 VC6 兼容。/Zc:wchar_t-
会导致您的代码不符合标准 C++,因此除非必须,否则不要使用它。/Zc:wchar_t-
does the opposite of what/Zc:wchar_t
does: it causeswchar_t
to be treated as the same type asunsigned short
, for compatibility with VC6./Zc:wchar_t-
causes your code to be non-conformant with standard C++, so don't use it unless you must.