简体   繁体   English

Poco :: Uint32和Mactypes Uint32模棱两可

[英]Poco::Uint32 and Mactypes Uint32 are ambiguous

In ios usr/include/MacTypes.h there is a 在ios usr / include / MacTypes.h中有一个

typedef unsigned long  UInt32;

and In Poco/Types.h there is also 在Poco / Types.h中也有

typedef unsigned int  UInt32; 

And when i try to compile it gives and error as : 当我尝试编译时,给出和错误为:

Reference to "Uint32" is ambiguous

In this link the guy has exactly same problem as me. 在这个链接中,这个人和我有完全一样的问题。 But i didnt understand the solution. 但是我不明白解决方案。 So is there anybody knows a solution ? 那么有人知道解决方案吗?

*Note : I didnt include directly Poco/Types.h. *注意:我没有直接包含Poco / Types.h。 This was included from another header file. 这是从另一个头文件包含的。 And MacTypes.h was included by another library header file. MacTypes.h包含在另一个库头文件中。

I solved this problem, if you face with this problem you should change order of importing headers. 我解决了这个问题,如果您遇到此问题,则应更改导入标头的顺序。 You should import Poco headers after native headers. 您应该在本地标头之后导入Poco标头。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM