- Home
- About
- Conversations
- Tips
- Amazon MP3: DRM-free music
- iTunes Plus tips!
- Ogg in iTunes
- Show hidden files (.htaccess) in OS X
- Convert FLAC to MP3, WAV, or AIFF to play in iTunes on Mac OS X
- Convert WMA to MP3
- Swap left Alt and Ctrl keys in Windows
- Boot Camp: Delete, Right-Click, Middle-Click
- Creating nice aliases
- CSS generated content special characters
- Default Application in OS X
- Enso (Windows Quicksilver)
- Import Gmail contacts to Mail
- Install RAM: MacBook Pro
- iPhoto: Deleting aliased pictures
- Using Keyboards with Your Mac + the Microsoft Natural 4000
- Aurora - iTunes Alarm Clock
- Delete keys on Macs
- Projects
- Boost and XCode
- Code
- Contact
- create content
Including the Boost C++ library in XCode
Submitted by alanhogan on November 27, 2007 - 11:08pm.
Conversation | Boost | C++ | Code | OS X | Programming | XCode
For those of you Mac OS X programmers trying to use the Boost C++ library who are confused with all this #include and #include-path nonsense and can't get your program to compile, I have finally figured it out.
All you need to do is follow these steps.
- Unzip the Boost library somewhere, for example /usr/local (tip: Use Finder's “Go > Go to folder...” command to go to this hidden folder)
- Open or create your XCode project
- In the project window, click on the project name (right under the heading “Groups & Files”)
- Click the Info button (blue circle with i)
- Locate “Header Search Paths” and edit it. Add the path of wherever you unzipped the Boost library, for example, /usr/local/boost_1_34_1
- Compile and run!
Hope that helped. If you are still having problems, try Googling lists.boost.org.
Page Outdated! Comments disabled!
As do many people using Drupal to power their website, I get a lot of comment spam, and Drupal's spam filter is horrible! So I have permanently disabled comments on old.alanhogan.com. Try the new version of this page (which may not exist, but should if this page actually has content besides a list of other articles).
Consider using my contact form to get in touch. And remember that AlanHogan.com is live and old.alanhogan.com is here as a backup only, and a stopgap measure because some AlanHogan.com functionality is not implemented yet.




Thank you
Thanks for this post. It made my life a lot better.