Step 1) start a new project in Xcode with ARC enabled
Step 2) add objective chipmunk to it
Step 3) #import "ObjectiveChipmunk.h"
You'll find 5 compile errors when you try to run it:
cpBody.h:83:16: error: ARC forbids Objective-C objects in structs or unions [4]
cpDataPointer data;
^
cpShape.h:85:16: error: ARC forbids Objective-C objects in structs or unions [4]
cpDataPointer data;
^
cpArbiter.h:42:18: error: ARC forbids Objective-C objects in structs or unions [4]
cpCollisionType a;
^
cpConstraint.h:81:16: error: ARC forbids Objective-C objects in structs or unions [4]
cpDataPointer data;
^
cpSpace.h:72:16: error: ARC forbids Objective-C objects in structs or unions [4]
cpDataPointer data;
^
5 errors generated.
ARC forbids Objective-C objects in structs or unions
-
- Posts: 2
- Joined: Mon Nov 21, 2011 1:28 am
- Contact:
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: ARC forbids Objective-C objects in structs or unions
The current development version of Chipmunk Pro does support ARC. I've set up a Git repository for Chipmunk Pro. You can log in using the same username/password as the download site. Check the end of the blog post here to see how to do it: http://howlingmoonsoftware.com/wordpress/?p=657
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
-
- Posts: 2
- Joined: Mon Nov 21, 2011 1:28 am
- Contact:
Re: ARC forbids Objective-C objects in structs or unions
Excellent. That works like a champ. Thanks for the quick response!
Who is online
Users browsing this forum: No registered users and 3 guests