I used the eclispe and netbeans ides to configure boost. The results showed that their support for C ++ is still not good enough. I often reported that I could not resolve the issue, back to xcode IDE.
Let me briefly talk about xcode configuration.
In build setting, set the header search path and library search path
Import the link binary with libraries file in build phases, either. A or. dylib can
Now the boost source code can be compiled and used successfully, but the running will prompt that the boost Source Code cannot be loaded. The dyld_library_path directory needs to be introduced in product-> edit scheme. Please refer to or directly configure the environment variable, sudo Vim ~ /. Bash_profile, add a row in it: Export
Dyld_library_path =/Opt/local/lib/Boost/libThe red part is your lib directory.
Now you can run it successfully.