0

我已经用 C++ 编写了一些相机捕捉代码,并将图像绑定到纹理。我想弄清楚如何合并虹吸服务器。我的 c++ 代码工作正常。当我通过 Syphon/Syphon.h 导入虹吸框架时,我得到了无数

Expected unqualified-id

Unknown type name...

与 NSObjCRuntime.h、NSZone.h、NSObject.h 相关的错误。

我在 OSX 10.10.5 上使用 x 代码。

4

1 回答 1

0

这对我有用:

在 build settings -> Custom Compiler Flags 中,将“Other C Flags”设置为“-x Objective-c”并将“Other C++ Flags”设置为“-x Objective-c++”

通过:

巴斯蒂安

ios - NSObjCRuntime、NSZone 和 NSObject 中的解析问题

于 2017-09-26T04:51:01.043 回答