c++ -/Zc :wchar_t- mean? 中的减号是什么

标签 c++ command-line-arguments wchar-t cl.exe

最近,由于存在(或不存在)此标志,我遇到了一些链接问题。

/Zc:wchar_t-

我读过 docs ,但他们没有提到尾随减号。但每一次关于它的讨论似乎都包括它。什么意思?

最佳答案

/Zc:wchar_t- 的作用与 /Zc:wchar_t 的作用相反:它导致 wchar_t 被视为同一类型作为 unsigned short,为了与 VC6 兼容。

/Zc:wchar_t- 会导致您的代码不符合标准 C++,因此除非必须,否则不要使用它。

关于c++ -/Zc :wchar_t- mean? 中的减号是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7350366/

相关文章:

c++ - 在 wxWidgets 中获取键名

c++ - std::accumulate 可以抛出吗?

c++ - 通过 const rerefence 传递 vector 并向 vector 添加元素

C编程: How to use gdb with Makefile and command line arguments?

Python nosetests : how to access cmd line options? 即 `--failed`

vb6 - 如何隐藏命令行参数

c++ - 为什么 towlower() 函数不将 Я 转换为小写 я?

c - 如何在 C 中将 char 字符串复制/转换为 wchar_t 字符串?

c++ - C++ 是否具有 HTML <canvas></canvas> 和 JS fillRect 的等价物?

c++ - C++ exe (MSVC++2010) 中的 Unicode 问题