ARC forbids Objective-C objects in structs or unions

Discuss any Chipmunk bugs here.
Post Reply
midi3
Posts: 2
Joined: Mon Nov 21, 2011 1:28 am
Contact:

ARC forbids Objective-C objects in structs or unions

Post by midi3 »

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.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: ARC forbids Objective-C objects in structs or unions

Post by slembcke »

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/
midi3
Posts: 2
Joined: Mon Nov 21, 2011 1:28 am
Contact:

Re: ARC forbids Objective-C objects in structs or unions

Post by midi3 »

Excellent. That works like a champ. Thanks for the quick response!
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests