第三方标头之间的C ++命名空间冲突

时间:2018-09-21 22:52:06

标签: c++ namespaces scaleform

这与another namespace issue有关。

我正在将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代码的路。

我该如何解决?

0 个答案:

没有答案
相关问题