Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Boost in XCode




I have a command line program I'm moving over from Windows. It uses the Boost and Gil (Adobe) libraries but I'm having a hard time getting Xcode to play nice with Boost. The show stopper right now is that it says the includes are not there even though they are. Fore example,

#include <boost/mpl/begin.hpp

gives the compilation error:

error: boost/mpl/begin.hpp No such file or directory
If you unzip boost to a directory such as /source/boost then be aware that there inside there is another directory called boost which is where the headers reside (ie /source/boost/boost) , so you'll need to add /source/boost as your include path and then it will work fine.

The other caveat to be aware of with boost is that some of the libraries have to be built before they can be used (you'll know whether there's anything you need to build if you get a link error). See http://www.boost.org/more/getting_started/unix-variants.html for mac-specific info.

Other than that, boost works very well with Xcode.

Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Using Boost in XCode (From: Kevin Kratzke <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.