Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

+ (Class)layerClass won't work

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?

like image 557
J6423000dsfjsdkf Avatar asked Jun 06 '11 11:06

J6423000dsfjsdkf


1 Answers

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

like image 162
Maz Avatar answered Oct 06 '22 23:10

Maz