c++ - Poco::Uint32 and Mactypes Uint32 are ambiguous -


in ios usr/include/mactypes.h there

typedef unsigned long  uint32; 

and in poco/types.h there also

typedef unsigned int  uint32;  

and when try compile gives , error :

reference "uint32" ambiguous 

in link guy has same problem me. didnt understand solution. there knows solution ?

*note : didnt include directly poco/types.h. included header file. , mactypes.h included library header file.

i solved problem, if face problem should change order of importing headers. should import poco headers after native headers.


Comments