我正在尝试在我的Objective-C分类中使用关联对象,但是我收到了这个警告。
Implicit declaration of function 'objc_getAssociatedObject' is invalid in C99
另外,我正在使用arc,如果这有区别的话。
我正在尝试在我的Objective-C分类中使用关联对象,但是我收到了这个警告。
Implicit declaration of function 'objc_getAssociatedObject' is invalid in C99
另外,我正在使用arc,如果这有区别的话。
你是否已经添加了?
#import <objc/runtime.h>
在你的文件开头?
在绘制函数之前,我复制了这些行代码,现在它工作了。
GL_API void GL_APIENTRY glEnableClientState (GLenum array);
GL_API void GL_APIENTRY glDisableClientState (GLenum array);
GL_API void GL_APIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
GL_API void GL_APIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);