简体   繁体   中英

Poco::Uint32 and Mactypes Uint32 are ambiguous

In ios usr/include/MacTypes.h there is a

typedef unsigned long  UInt32;

and In Poco/Types.h there is also

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. This was included from another header file. And MacTypes.h was included by another library header file.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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