Box2D Forums

It is currently Mon Sep 06, 2010 9:50 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 11 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Can't Compile on iPhone SDK and Xcode (no toolchain please)
PostPosted: Mon Feb 02, 2009 12:43 pm 
Offline

Joined: Mon Feb 02, 2009 12:36 pm
Posts: 1
Very new to this but I believe this may be the answer:

Making sure you're using the .mm extension for your implementation code, I simply added this to my header file:

#ifdef __cplusplus
#import "Box2D/Include/Box2D.h"
#endif

I was the able to compile successfully using the latest code from SVN (though of course it probably works with the latest official release - I haven't checked) and make references to classes such as b2World and b2Body directly from my Objective-C interface section.

Hope that helps.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page Previous  1, 2

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Heritrix [Crawler], Yahoo [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group