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



On 20 Oct 2007, at 3:02 PM, Kevin Kratzke wrote:

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

But it is there and that is the location.

Try this: Double-click on the project icon in your project window's Groups & Files list.


Select the Build tab in the resulting Info window.

In the search field type "search." Find the entry for "Header Search Paths."

Edit that entry so it includes the path to whatever directory contains the boost/ directory mentioned in your #include.

If you have to share the project among users, each with their own copies of Boost, read up on Source Trees. For instance define a BOOST source tree and specify the header search path relative to "$ {BOOST}" (including the quotes). Each developer will have to fill in the Boost source tree, but the project will be insulated from such variations.

	— F
_______________________________________________
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.