Re: C++ and boost
Re: C++ and boost
- Subject: Re: C++ and boost
- From: Kai BrĂ¼ning <email@hidden>
- Date: Mon, 04 Apr 2011 09:11:59 +0200
On 4.4.2011, at 08:42, Andreas Grosam wrote:
>
> On Apr 3, 2011, at 9:34 AM, David Remacle wrote:
>
>> Hello,
>>
>> I am develop one app with C++ and boost. I would using XCode 4.
>>
>> I have installed boost with Macport. The header files are located in
>>
>> /opt/local/includes/
>>
>> and the library is in
>>
>> /opt/local/lib/
>>
>> Where in Xcode 4 add the path for boost ?
>>
>> Tank's for reading.
>
>
> Usually, you add header search paths for libraries to the target's "Header Search Path" [HEADER_SEARCH_PATHS] build setting variable. If you want to link to a library you can add it in the target's "link Binary With Libraries" section in its "Build Phases".
>
>
> I would suggest doing the following:
>
> In the projects's Build Settings, define a "user defined setting" where you specify the absolute path where the Boost headers are located, e.g.:
>
> BOOST_ROOT = /opt/local/include
Another place for this are the "Source Trees" in Xcode preferences. They are meant to set machine dependent paths, which can be referenced in projects.
>
> Then, in the target's build setting "Header Search Path" add the path using the build settings variable:
>
> Header Search Path [HEADER_SEARCH_PATHS] += $(BOOST_ROOT)
>
>
> Of course, you can directly set the absolute path to boost root in the Header Search Path setting. However, this way it helps to manage your project settings and you can easily switch to another version of boost without searching for all occurrences of the path in your targets.
>
> Andreas _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden