Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经用 C++ 编写了一些相机捕捉代码,并将图像绑定到纹理。我想弄清楚如何合并虹吸服务器。我的 c++ 代码工作正常。当我通过 Syphon/Syphon.h 导入虹吸框架时,我得到了无数
Expected unqualified-id
和
Unknown type name...
与 NSObjCRuntime.h、NSZone.h、NSObject.h 相关的错误。
我在 OSX 10.10.5 上使用 x 代码。
这对我有用:
在 build settings -> Custom Compiler Flags 中,将“Other C Flags”设置为“-x Objective-c”并将“Other C++ Flags”设置为“-x Objective-c++”
通过:
巴斯蒂安
ios - NSObjCRuntime、NSZone 和 NSObject 中的解析问题