相关文章推荐
开朗的饭盒  ·  ubuntu 基于intel vaapi ...·  1 年前    · 
怕老婆的小马驹  ·  C# ...·  2 年前    · 
想出家的煎鸡蛋  ·  B2C 开源网店软件 ...·  2 年前    · 
主要设置C++ Language Standard: ISO C++ 17 设置完成之后,就可以使用最新的C++17的特性,同时也强制地按这个标准 编译 了。如果是旧的代码,也许会提示一个如下的BUG: c:\program files (x86)\microsoft sdks\windows\v7.1a\ C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include\cstddef(28): note: 或 “std:: byte ”C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared\rpcndr.h:192: error : C2872 : “ byte ”: 不 明确 符号 。 windows下c++ 编译 出现错误: error C2872 : ‘ byte ’: ambiguous symbol 原因是 c++17引入了类型 std:: byte ,与原来old的C++定义的unsigned char byte 重名冲突。 std:: byte ,std::array ,std::size 如果代码中使用了us... windows下c++ 编译 出现错误: error C2872 : ‘ byte ’: ambiguous symbol 原因 c++17引入了类型 std:: byte ,如果 代码中使用了using namespace std;则会出现 编译 错误。 解决方案: 去掉 using namespace std; C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared\rpcndr.h(192,14): error C2872 : “ byte ”: 不 明确 符号