• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C++ and boost
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ and boost


  • Subject: Re: C++ and boost
  • From: Andreas Grosam <email@hidden>
  • Date: Mon, 04 Apr 2011 08:42:52 +0200

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

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

  • Follow-Ups:
    • Re: C++ and boost
      • From: Kai BrĂ¼ning <email@hidden>
References: 
 >C++ and boost (From: David Remacle <email@hidden>)

  • Prev by Date: Re: Xcode workflow
  • Next by Date: Re: C++ and boost
  • Previous by thread: Re: C++ and boost
  • Next by thread: Re: C++ and boost
  • Index(es):
    • Date
    • Thread