Box2D Forums

It is currently Fri May 24, 2013 12:47 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Header trouble in Xcode
PostPosted: Mon Dec 31, 2007 8:20 pm 
Offline

Joined: Mon Dec 31, 2007 8:10 pm
Posts: 1
First of all, happy new year!

Now for my question. I've built the dynamic library in Xcode and copied it to my project folder, as well as the Box2D.h file. However, when I try to include Box2D.h in my code the compiler complains about it missing the other Box2D headers. I'd add the headers manually, but all of the include paths are hard-coded to match the paths in the distribution folder, which may make things look a little odd if I just move everything to my project folder. Is there a standard procedure for using Box2D in an Xcode project?


Top
 Profile  
 
PostPosted: Tue Jan 08, 2008 12:20 am 
Offline

Joined: Wed Nov 28, 2007 7:06 pm
Posts: 23
Location: Kyoto, Japan
I'm still new too, but from what I gathered, it's better to link to external header files, then to copy them to your project folder. For exactly the reason that the relative paths get messed up.

To link to header files you can make a new build phase, like this:
Image

Add the box2d.h file to this build phase, and when building your project xcode should know where to find the header file. I'm not sure if this is THE way, but it works for me :)

Good luck!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users 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® Forum Software © phpBB Group