开发者

+ (Class)layerClass won't work

开发者 https://www.devze.com 2023-03-11 04:14 出处:网络
I\'m building an OpenGL application and on eaglview.m + (Class)layerClass wont work. If 开发者_C百科i try to run it I get:

I'm building an OpenGL application and on eaglview.m + (Class)layerClass wont work.

If 开发者_C百科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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消