我正在将Scaleform集成到OSX C ++应用程序中。
我在OSX标头(/usr/include/MacTypes.h)和Scaleform标头之间遇到类型冲突:
...other includes... In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43: In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:77: /usr/include/MacTypes.h:249:9: error: reference to 'Ptr' is ambiguous typedef Ptr * Handle; ^ /usr/include/MacTypes.h:248:41: note: candidate found by name lookup is 'Ptr' typedef char * Ptr; ^ .../sf_4.6.33_osx_lib/Include/../Src/Kernel/SF_RefCount.h:364:7: note: candidate found by name lookup is 'Scaleform::Ptr' class Ptr ^
我可能不想更改/usr/include/MacTypes.h :-)。而且我不想走修改Scaleform代码的路。
我该如何解决?