Poco::Uint32 和 Mactypes Uint32 是模棱两可的
Poco::Uint32 and Mactypes Uint32 are ambiguous
在ios usr/include/MacTypes.h中有一个
typedef unsigned long UInt32;
在Poco/Types.h中也有
typedef unsigned int UInt32;
当我尝试编译时,它会给出错误:
Reference to "Uint32" is ambiguous
在这个链接中,这家伙的问题与我完全相同。但我不明白解决方案。那么有没有人知道解决方案?
*注意:我没有直接包括Poco/Types.h。这是从另一个头文件中包含的。MacTypes.h包含在另一个库头文件中。
我解决了这个问题,如果你遇到这个问题,你应该改变导入标题的顺序。您应该在本机标头之后导入 Poco 标头。
相关文章:
- "Inverse SFINAE"避免模棱两可的过载
- 操作员C++的模棱两可的过载
- 模棱两可的重载模板
- 调用重载的"<大括号括起来的初始值设定项列表>"对于对来说就足够了是模棱两可的
- 模棱两可的 != reverse_iterator运算符
- SFINAE不能防止模棱两可的操作员过载吗?
- VSCode 说 std::chrono 是模棱两可的,如果运算符<<重载
- 为什么对模板的调用不模棱两可?
- 修复重载运算符的使用'+'模棱两可?
- 为什么同时覆盖全局新运算符和特定于类的运算符不是模棱两可的行为?
- Antlr4 C++访问模棱两可的分支
- 模棱两可的调用 - 模板化函数
- memcpy 是将浮子打包到 uint32 中的标准方法吗?
- 警告C4018,包含int和UINT32,但不包含int和UCHAR
- 在SESHAT中,对"元组"的引用是模棱两可的
- C++17 年与 Clang 的模棱两可的部分专业化
- gcc 中的模棱两可的运算符
- 将 NULL 转换为长不是模棱两可吗?
- 为什么 UInt64 变量不能包含大于 UInt32::Max 的值?
- Poco::Uint32 和 Mactypes Uint32 是模棱两可的