+ (Class)layerClass won't work

孤街浪徒 提交于 2020-01-29 06:43:43

问题


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?


回答1:


You need to add the OpenGL and potentially the QuartzCore frameworks to the target to link them.



来源:https://stackoverflow.com/questions/6251111/classlayerclass-wont-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!