Mehmet AKYOL
Mehmet AKYOL

Reputation: 1666

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.

Upvotes: 0

Views: 446

Answers (1)

Mehmet AKYOL
Mehmet AKYOL

Reputation: 1666

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.

Upvotes: 1

Related Questions