Mithelee
Mithelee

Reputation: 11

framework for CGRectIntersectsRect function

Hi I am writing a game with cocos2d and using the ipad 5.0 simulator. at compiling I am getting this link error which says the CGRectIntersectsRect symbol is not found for architecture i386. I think I am missing the right framework to get rid of this error. Any ideas?

Upvotes: 0

Views: 153

Answers (1)

user529758
user529758

Reputation:

I think I am missing the right framework

Right, the framework you'll want to link against is CoreGraphics.

Note that you must also correctly

#import <CoreGraphics/CoreGraphics.h>

in order inline functions to work/be compiled properly.

Upvotes: 2

Related Questions