ARC forbids Objective-C objects in structs or unions

Discuss any Chipmunk bugs here.

ARC forbids Objective-C objects in structs or unions

Postby midi3 » Tue Nov 22, 2011 6:57 am

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

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

Postby slembcke » Tue Nov 22, 2011 11:34 am

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

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

Postby midi3 » Wed Nov 23, 2011 12:05 am

Excellent. That works like a champ. Thanks for the quick response!
midi3
 
Posts: 2
Joined: Mon Nov 21, 2011 1:28 am


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests

cron