Xcode + boost Configuration

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.