+ (Class)layerClass 不起作用 [英] + (Class)layerClass won't work
本文介绍了+ (Class)layerClass 不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在构建一个 OpenGL 应用程序,但在 eaglview.m + (Class)layerClass
上不起作用.
I'm building an OpenGL application and on eaglview.m + (Class)layerClass
wont work.
如果我尝试运行它,我会得到:
If i try to run it I get:
"Undefined symbols for architecture i386:
"_OBJC_CLASS_$_CAEAGLLayer", referenced from:
objc-class-ref in GLView.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status"
我该如何解决这个问题?
How can I fix this?
推荐答案
您需要将 OpenGL 和可能的 QuartzCore 框架添加到目标以链接它们.
You need to add the OpenGL and potentially the QuartzCore frameworks to the target to link them.
这篇关于+ (Class)layerClass 不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文